2023-05-15 21:14:06 +03:00
2023-05-15 21:14:06 +03:00
2023-05-15 21:14:33 +03:00
2022-12-19 01:18:25 +03:00
2022-12-19 01:18:25 +03:00
2023-02-28 13:27:49 +03:00
2022-12-19 01:18:25 +03:00
2023-02-28 13:25:26 +03:00
2023-02-28 13:27:49 +03:00
2023-02-28 13:27:49 +03:00

FastAPI Boilerplate

Compact template for FastAPI-based projects. SQLAlchemy ORM and Alembic migrations included.

Alembic

To add new models to migrations you need to import them inside migrations/env.py. Just add from <appname>.models import * at the head of file and it should be enough

And then create migration:

pipenv run alembic revision --autogenerate -m "<bla-bla>"

To quickly migrate:

docker-compose exec web bash
pipenv run alembic upgrade head

So that all .env varibles will be catched properly

Description
No description provided
Readme 390 KiB
Languages
Python 93.2%
Mako 3.4%
Dockerfile 1.7%
Shell 1.7%