Soccer online manager game API
Install Docker on your machine
In order to start backend locally you need to perform the following steps:
- Rename
.env.local
to.env
- Build docker image using
make build
- Start the development server with
make up
$ make build
$ make up
You can access your Django server http://localhost:8000/
- src/soccer - soccer manager implementation
- src/user - authentification (based on JWT)
- src/common - apps common stuff
- src/config/ - Django settings
- src/tests/ - tests
The docker-compose file defines two services:
- A Postgres server
- An application server
This project comes with a Makefile with several targets defined for the ease of development.
Install pre-commit firstly.
Please execute pre-commit install
once after downloading the repo code. It will help us keep the code quality in
check.
Run pre-commit run --all-files
if you want to check your code
Adding new production dependencies
docker-compose run app poetry add requests
Adding new development dependencies:
docker-compose run app poetry add requests -G dev
Recreating poetry.lock
file
make lock