- This Backend repo
- Leaderboard frontend: https://github.com/Dobermensch/sandbox-fe
- Game repo: https://github.com/Dobermensch/sandbox-game
- cd to this project directory
- Run
docker compose up
- Once the postgres service is running, connect to postgres (connection credentials in docker-compose.yml file) and run
1-create-scores-table.sql
in the migrations folder to create the database. - The project should be running on port 3001.
Optional step
If you want to generate mock data for the database, you may run python ./scripts/gen_mock_data.py
which will generate 120 insert queries for your database or copy the insert queries from ./migrations/2-insert-mock-data.sql
. Then execute those queries on the postgres
docker service.
Once the project is running, nagivate to http://localhost:3001/documentation
- Navigate to
https://studio.asyncapi.com/
in the browser - Copy the file
./docs/websockets.yaml
. - Paste the file in
https://studio.asyncapi.com/