444 B
444 B
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
To quickly migrate:
docker-compose exec web bash
pipenv run alembic upgrade head
So that all .env varibles will be catched properly