- ORM (sqlmodel)
- Migrations (alembic)
- Authentication (JWT)
- Poetry (https://python-poetry.org/)
- Make (optional)
- Copy
.env.example->.envand edit according to your needs - Run
poetry install
- Update your database:
make migrateorpoetry run alembic upgrade head - Create new migration:
- Create or edit your models at
models/- If you are creating a new model, make sure to add it to
models/__init__.py
- If you are creating a new model, make sure to add it to
make migration name="migration name"orpoetry run alembic revision --autogenerate -m "migration name"- This will create a new migration file in
migrations/versions/
- This will create a new migration file in
- Review the generated migration file and make any necessary adjustments
- Create or edit your models at
- Apply migrations:
make migrateorpoetry run alembic upgrade head
make start
Go to /docs to access swagger auto-generated docs.