FastAPI Project Examples
FastAPI Alembic Migrations with DockerA Docker based FastAPI project that uses SQLAlchemy models, PostgreSQL, and Alembic migrations instead of creating tables directly at startup.
FastAPI Authentication and AuthorizationA Docker based FastAPI project that separates password authentication, JWT current-user resolution, role based authorization, and owner based permissions.
FastAPI Error Handling and API ResponsesA Docker based FastAPI project that uses custom exceptions, global exception handlers, validation error shaping, and consistent API response contracts.
FastAPI File Upload and Frontend IntegrationA Docker based FastAPI project that handles file uploads, serves uploaded media files, enables CORS, and supports frontend multipart form requests.
FastAPI PostgreSQL Auth with Repository and Async SQLAlchemyA Docker based FastAPI project that combines PostgreSQL, password authentication, repository pattern, and async SQLAlchemy.
FastAPI Settings and Environment VariablesA Docker based FastAPI project that uses Pydantic settings, .env files, Docker Compose environment values, and validated application configuration.
FastAPI Setup with DockerA FastAPI setup project that runs fully inside Docker and exposes basic JSON routes.
FastAPI SQLAlchemy CRUD with SQLiteA Docker based FastAPI project that combines Pydantic schemas, SQLAlchemy models, SQLite, CRUD routes, and user-post relationships.
FastAPI Testing with PytestA Docker based FastAPI testing setup that covers route tests, validation tests, database dependency overrides, authentication tests, and authorization tests.