Skip to content

Sherevv/fastapi-react-docker

Repository files navigation

Full stack demo app

Uses async DB connections.

Database:

Backend:

Frontend:

Tools:

DB prepare

FastAPI doesn't create db tables on start, use alembic migrations for it.

# See Makefile
make migrations m="migration message" # create migrations
make migrate # apply migrations to db
make downgrade # downgrade last migration

Resources

  1. article: FastAPI with Async SQLAlchemy, SQLModel, and Alembic
  2. github: FastAPI, Strawberry