The codebase here includes the backend server of the game
Check out all other dependencies required by running the command below :
poetry run pip list
poetry update
poetry build
poetry install
poetry run webapp-dev
poetry run socketio-app-dev
Once the server started, you can send HTTP request to the server.
For example:
curl --request POST --http2 \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "{\"players\":[{\"id\":\"8du0ey\", \"nickname\":\"Frog\"}]}" \
-v "http://localhost:8081/games"
The command below includes unit test and e2e test
poetry run pytest -v ./tests
poetry run ruff check ./app/
poetry run black ./app/