fastapi-clean-architecture
Base FastAPI Project to create general api.
pythonboilerplatefastapi
FreeRepo
Overview
This is a FastAPI starter project that provides a clean, minimal architecture for building REST APIs with Python 3.9 and above. It includes a relational database layer with MySQL or PostgreSQL support, automated migrations using Alembic, JWT authentication with role-based access control, a service-repository pattern for code organization, dependency injection, comprehensive testing with pytest and deployment options for Docker and Kubernetes.
Features
rest-apijwt-authenticationrole-based-access-controldatabase-migrationsdependency-injectionservice-repository-patterncontainerization
Feature Flags
authenticationsubscriptionsblogauthorization
Recommended Use Cases
rest-api-developmentmicroservicesbackend-applicationsgeneral-api-projects
Frontend
None
Backend
fastapipythonuvicornalembicsqlalchemy
Auth Providers
jwt
Deployment Targets
dockerkubernetesraw-server
Payment Providers
None
Quick Facts
โญ Stars
490
๐ด Forks
111
๐ Active
Unknown
๐ Last Commit
2024-11-03T12:08:42.000Z
Stack
Framework
fastapi
Language
python
Database
mysql, postgresql
ORM
sqlalchemy
Testing
pytest
Data Layer
Databases
postgresql, mysql
ORM
sqlalchemy
UI Stack
Developer Experience
Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes
Pricing
Classification
free
Selected
โ
Notes
Open source project