Cold-war-boardgame

This is pet project:

  • learning curve for project-manager
  • learn rest-api by game development
  • learn reinforcement learning pipline for p-to-p board game

Project resources

Other stuff:

Run project local

Add .env file to root with some variables

DEV_ROOT_USERNAME=<this>
DEV_ROOT_PASSWORD=<this>
TEST_ROOT_USERNAME=<this>
TEST_ROOT_PASSWORD=<this>
ADMINUSERNAME=<this>
ADMINPASSWORD=<this>

# dev mongodb
MONGODB_URL=mongodb://${DEV_ROOT_USERNAME}:${DEV_ROOT_PASSWORD}@mongo-dev:27017/
DB_NAME=dev-db

# test_mongodb
TEST_MONGODB_URL=mongodb://${DEV_ROOT_USERNAME}:${DEV_ROOT_PASSWORD}@mongo-test:27021/

# JWT secret key
SECRET_KEY=<this>

# Test vars
<some>

Run or stop stack from root

  • make serve to run
  • make down to stop

Use local resources to watch project

Test inside backend container

pytest -v -s -x for all tests pytest tests/step_defs/ -x -s -v only for functional tests

use python -m IPython to check code