Pandemic-Reign-of-Cthulhu

Pandemic - Reign of Cthulhu

The codebase here includes the backend server of the game

Technology Stack

Check out all other dependencies required by running the command below :

poetry run pip list

Setup

Install dependencies

poetry  update

Build project

poetry  build
poetry  install

Run

web application server for REST endpoints

poetry run webapp-dev

socket.io server

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"

Test

The command below includes unit test and e2e test

poetry run pytest -v ./tests

Linter

poetry run ruff check ./app/

Formatter

poetry run black  ./app/