>= 3.10
- Create venv
python3.10 -m venv .venv
- Activate venv
source .venv/bin/activate
- Install requirements
pip install -r app/requirements/local.txt
Run pip freeze
after project's first requirements installation to pin requirements' versions.
- Copy .env
cp app/app/local.example.env app/app/.env
Refer to:
https://docs.docker.com/engine/install/
Use the script to start PSQL in Docker Compose, apply migrations and run development server:
make local
Go to http://127.0.0.1:8000/api/docs after running server
During development, use Black formatter, Pylint and Flake8.
Copy .env:
cp app/app/production.example.env app/app/.env
Use shortcut script:
make up