A production-ready FastAPI template with SQLAlchemy, Alembic, and modular architecture.
- � Pre-configured FastAPI with best practices
- 🗄 SQLAlchemy ORM with async support
- 📊 Alembic for database migrations
- 🧩 Modular architecture (core/infrastructure/internal)
- 🔒 Environment variables management
- 📜 Pre-commit hooks setup
-
Clone the repository:
git clone https://github.com/your-username/fastapi-template.git cd fastapi-template -
Install dependencies
uv install
-
Configure environment:
cp .env.example .env
-
Run the application:
uv run main.py
-
Open http://localhost:3000/docs to see Swagger UI
- Create new migration:
alembic revision --autogenerate -m "init" - Apply migrations:
alembic upgrade head
