First activate your python virtual environment
source env/bin/activate
If you don't have a virtual environment create one with
python3 -m venv env
Install dependencies (make sure your virtual environemnt is activated!)
pip install -r requirements.txt
Run with
cd game
python3 main.py
Run leaderboard locally with
cd leaderboard
flask --app leaderboard.py run
Submit a new score with
curl -X POST http://localhost:5000/api/upload/ -F "username=[user name here]" -F "score=[score here]"
Get board in json with
curl -X GET http://localhost:5000/api/board/
Initialize database with
bin/db create
Reset databse with
bin/db reset
See all values in database with
bin/db dump
Delete databse with
bin/db destroy