A production-ready FastAPI starter template with:
- JWT Authentication 🔐
- PostgreSQL integration 🐘
- Dockerized deployment 🐳
- Rate limiting & async tasks ⚡
- Saves 20+ hours of initial setup
- Follows best practices (testing, logging, security)
- Scalable for high-traffic apps
- ✅ JWT Auth (login/register endpoints)
- ✅ SQLAlchemy ORM (PostgreSQL/MySQL)
- ✅ Automated tests (Pytest)
- ✅ Rate limiting (Redis)
- ✅ Background task queue (Celery)
git clone https://github.com/abq2904/fastapi-rest-api-boilerplate.git
cd fastapi-rest-api-boilerplate
docker-compose up -d📦 Included Modules Module Description /auth JWT token generation & validation /users CRUD operations for user management /utils Rate limiting, logging, error handling 🔧 Customization Edit config.py for database/security settings
Add new routes in app/api/v1/endpoints/
📈 Deployment Pre-configured for: AWS ECS (with Terraform) Google Cloud Run Heroku
fastapi-rest-api-boilerplate/ ├── app/ │ ├── api/ │ │ └── v1/ │ │ ├── endpoints/ │ │ │ ├── auth.py │ │ │ └── users.py │ ├── core/ │ │ ├── config.py │ │ └── security.py │ └── models/ │ └── user.py ├── tests/ │ └── test_api.py ├── docker-compose.yml ├── requirements.txt └── README.md
📌 Need a custom API? Contact me on Upwork