- Prepare
- Install dependencies:
poetry install - Activate venv:
poetry shell
- Install lib
- production:
poetry add <lib-name> - dev:
poetry add -Gdev <lib-name>
- Run
- Run in local:
- start compose stack for local database:
docker compose up -d - start local server:
poetry run start- server's running in: localhost:8000
- swagger: localhost:8000/docs
- start compose stack for local database:
-
Migration
Make sure you're in venv shell:
poetry shell
- Generate new migration:
alembic revision --autogenerate -m "<message here>" - Run migration:
alembic upgrade head