3.12
- Create venv
python3.12 -m venv .venv
- Activate venv
source .venv/bin/activate
- Install requirements
pip install -r app/requirements/local.txt
- 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, PGAdmin in Docker Compose, apply migrations and run uvicorn:
make local
Powered by Alembic
make migrations
Go to http://127.0.0.1:8000/api/docs after running server
During development use Black formatter, Pylint, Flake8 and MyPy.
Copy .env:
cp app/app/production.example.env app/app/.env
Use shortcut script:
make up