Skip to content

abq2904/fastapi-rest-api-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FastAPI REST API Boilerplate

A production-ready FastAPI starter template with:

  • JWT Authentication 🔐
  • PostgreSQL integration 🐘
  • Dockerized deployment 🐳
  • Rate limiting & async tasks ⚡

🌟 Why Use This?

  • Saves 20+ hours of initial setup
  • Follows best practices (testing, logging, security)
  • Scalable for high-traffic apps

🛠️ Features

  • ✅ JWT Auth (login/register endpoints)
  • ✅ SQLAlchemy ORM (PostgreSQL/MySQL)
  • ✅ Automated tests (Pytest)
  • ✅ Rate limiting (Redis)
  • ✅ Background task queue (Celery)

🚀 Quick Start

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

About

⚡ Production-Ready FastAPI Starter | JWT Auth, PostgreSQL, Docker, Tests ✅ Deployable on AWS/GCP/Azure ✅ Includes Swagger docs & rate limiting ✅ 100% test coverage with Pytest #python #fastapi #restapi #backend #developer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages