lol
 
 
 
 
 
 
Go to file
John Montagu, the 4th Earl of Sandvich fb050214b9
docs: Clarify reproduction steps again
2024-12-11 22:34:05 -08:00
availabili.tf fix: Fix being unable to do player actions 2024-12-11 20:30:26 -08:00
backend-flask fix: Fix logs not pulling correctly 2024-12-11 20:31:14 -08:00
nginx Move matches tab to team settings 2024-12-11 17:20:04 -08:00
.gitignore Implement some basic features 2024-11-02 12:33:27 -07:00
README.md docs: Clarify reproduction steps again 2024-12-11 22:34:05 -08:00
docker-compose.prod.yml docs: Clarify reproduction steps again 2024-12-11 22:34:05 -08:00
docker-compose.yml Make production ready 2024-12-11 18:04:53 -08:00
package-lock.json Add EventCard dropdown 2024-11-30 18:59:17 -08:00

README.md

availabili.tf

Schedule and availability system for Team Fortress 2 teams.

Tech Stack

Setup (production, Postgres)

Build the frontend app, assuming Node.js is installed:

cd availabili.tf
npm install
npm run build
cd ..

Build the rest of the containers:

docker compose -f docker-compose.prod.yml build
docker compose -f docker-compose.prod.yml up db backend

Perform initial database migration. This is for automatically setting up the database schema for the first time:

docker exec -it backend bash
flask db upgrade
exit

Bring up the rest of the containers:

docker compose -f docker-compose.prod.yml up

The app will run at port 8000 and the database will be available at port 5432.

Setup (development, SQLite3)

Build the frontend app:

cd availabili.tf
npm install
npm run build

Build the rest of the containers and perform initial database migration:

docker compose build
docker compose up
DATABASE_URI=sqlite:///db.sqlite3 flask db upgrade

The app will run at port 8000.

OpenAPI

The backend will automatically serve its OpenAPI-compliant spec at /apidoc/openapi.json which can also be viewed at /apidoc/redoc or /apidoc/swagger or /apidoc/scalar.

To regenerate the frontend client during development:

npm run openapi-generate