Add README.md

master
John Montagu, the 4th Earl of Sandvich 2024-11-06 20:56:55 -08:00
parent 2a41671d73
commit 3a10668f40
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 38 additions and 0 deletions

38
README.md 100644
View File

@ -0,0 +1,38 @@
# availabili.tf
Scheduling for TF2
## Setup (dev)
### Frontend
```sh
# first time setup
npm install
npm run dev
```
### Backend
In virtual environment:
```sh
# first time setup
pip install -r requirements.txt
flask db migrate
flask run --debug
```
### 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 generate the frontend client:
```sh
npx openapi --input 'http://localhost:5000/apidoc/openapi.json' --output src/client
```