Container for the innovation project WS '22
See: doc/DEPLOYMENT.md
See: doc/DATABASE.md
Start all the services with
docker compose up
Start only a specific service e.g. frontend: docker compose up frontend
Reset the project by composing down:
docker compose down --rmi all --volumes
Note that .vscode
directory contains some useful debug configurations.
Using Python (at least v3.10), install all requirements.txt
pip install -r api.requirements.txt
pip install -r scraper.requirements.txt
- doc/DATABASE.md describes how to
- Backup & restore
- run a development PostgreSQL based on
docker-compose
- initialize tables
- backend/README.md describes how to
- grab data from World Rowing API
- backend/model/README.md describes how to
- create/drop tables
- insert competition data
Note: Working directory (cwd) is backend/
python scraper.py
Note: Working directory (cwd) is backend/
python -m flask --app api_server:app run
Alternatively with python api_server.py
Debug with hot reload:
python -m flask --app api_server:app --debug run
Note Do not use this command for deployment. Use something like waitress
or gunicorn
.
- frontend/README.md describes how to
- install required packages
- run the frontend