https://github.com/komronium/fastapi-template
A FastAPI project template with a scalable and clean architecture, designed to help you quickly start building production-ready applications.
https://github.com/komronium/fastapi-template
alembic fastapi pydantic python sqlalchemy template uvicorn
Last synced: 3 months ago
JSON representation
A FastAPI project template with a scalable and clean architecture, designed to help you quickly start building production-ready applications.
- Host: GitHub
- URL: https://github.com/komronium/fastapi-template
- Owner: komronium
- License: mit
- Created: 2025-01-05T07:27:07.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-16T17:27:18.000Z (9 months ago)
- Last Synced: 2025-04-01T05:34:15.130Z (6 months ago)
- Topics: alembic, fastapi, pydantic, python, sqlalchemy, template, uvicorn
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI Template
Production-ready FastAPI template with clean architecture and JWT authentication.
## Features
- ✅ JWT Authentication
- ✅ SQLAlchemy + PostgreSQL
- ✅ Clean Architecture
- ✅ Pydantic Validation
- ✅ Docker Support
- ✅ Unit Tests
- ✅ API Documentation## Project Structure
```bash
📦 app/
├── 📂 api/ # API endpoints
│ └── 📂 v1/
├── 📂 core/ # Core configurations
├── 📂 db/ # Database setup
├── 📂 models/ # SQLAlchemy models
├── 📂 schemas/ # Pydantic schemas
├── 📂 services/ # Business logic
└── 📂 tests/ # Unit tests
```## Quick Start
### Using Docker
```bash
# Clone repository
git clone https://github.com/yourusername/fastapi-template.git# Setup environment
copy .env.example .env# Run with Docker
docker-compose up -d
```### Local Development
```bash
# Create virtual environment
python -m venv venv
.\venv\Scripts\activate# Install dependencies
pip install -r requirements.txt# Run development server
uvicorn app.main:app --reload
```