- Create virtual environment and install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.dev.txt
pip install -r requirements.test.txt
- Install
pre-commit
hooks
pre-commit install-hooks
pre-commit install
- Create
.env
file, don't forget to set proper variables
cp .env_example .env
- Launch server and DB
make up
- Apply migrations
make migrate
- Check http://0.0.0.0:80/docs, everything should be OK!
Some steps should be made to run tests.
Tests must be run only with APP_ENV=TEST
, there will be an error otherwise.
To run tests, stop your container with server (betmaker_server) and type:
make run_tests