This is a basic FastAPI web app example with SQL Alchemy ORM and Alembic migration management system.
Go to the project folder and run poetry install.
Ruff and Black tools are used. Run make checks to autoformat and lint the code.
Run make db-up to spin up a Postgres docker image.
Apply DB migrations by running poetry run alembic upgrade head
Run make run to start the API.
Run make test-db-up to spin up the test DB, then run make test
erDiagram
User ||--o{ Note : ""
Note {
number user_id
}
User ||--o{ UserDocument : "has 0-n documents via"
User {
number id
}
UserDocument }o--|| Document : ""
UserDocument {
number user_id
number document_id
}
Document {
number id
}