In this open source project, we use FastAPI for the backend with PostgresSQL for the database with SQLAlcemy ORM to interact with the database in addition to Alembic for database migration.
pip install -r requirements.txt && alembic upgrade head
uvicorn app.main:app --host 0.0.0.0 --reload
To run database migrations, run
alembic revision --autogenerate -m "REVISION MESSAGE"
To run unit tests, run
pytest -v --disable-warnings