
eslam5464/fastapi-template
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
🚀 Production-ready FastAPI template with JWT authentication, PostgreSQL integration, async support, clean architecture, and modern development tools.
개요
A production-ready FastAPI project template with modern best practices, async support, JWT authentication, and PostgreSQL integration. - - Modern, fast web framework for building APIs, with versioned routers (/v1, /v2) - - Async database integration with SQLAlchemy 2.0 and Alembic migrations - - Secure token-based authentication with token blacklisting - - Repository pattern, dependency injection, and enforced module boundaries (tach) - - CSRF, rate limiting, and security headers middleware - - Backend, Postgres, and Redis ready to run - - Pytest with coverage gating, plus lint/type/security checks in GitHub Actions Plus optional integrations for caching, background jobs, cloud storage, Firebase, Apple Pay, and email delivery. For the full list of integrations and services, see .
README
원문 README의 일부입니다. 원문 보기.
FastAPI Template
A production-ready FastAPI project template with modern best practices, async support, JWT authentication, and PostgreSQL integration.
✨ Features
- 🚀 FastAPI - Modern, fast web framework for building APIs, with versioned routers (
/v1,/v2) - 📊 PostgreSQL - Async database integration with SQLAlchemy 2.0 and Alembic migrations
- 🔐 JWT Authentication - Secure token-based authentication with token blacklisting
- 🏗️ Clean Architecture - Repository pattern, dependency injection, and enforced module boundaries (tach)
- 🔒 Security - CSRF, rate limiting, and security headers middleware
- 🐳 Docker Compose - Backend, Postgres, and Redis ready to run
- 🧪 CI & Testing - Pytest with coverage gating, plus lint/type/security checks in GitHub Actions
Plus optional integrations for caching, background jobs, cloud storage, Firebase, Apple Pay, and email delivery. For the full list of integrations and services, see docs/features.md.
🚀 Quick Start
Prerequisites
Installation
-
Clone the repository
git clone cd FastApi-Template -
Install dependencies
Create a virtual environment
python -m venv .venvActivate the virtual environment
# On Linux / macOS source .venv/bin/activate # On Windows (PowerShell) .venv\Scripts\Activate.ps1Install dependencies
# Install dependencies uv sync --all-groups # Install optional integrations as needed uv sync --all-groups --all-extras # Install pre-commit hooks pre-commit installNote: If you are facing SSL issues on Windows, use:
uv sync --all-groups --native-tls uv sync --native-tls --all-extras -
Set up environment variables
cp .env.example .env # Edit .env with your configuration -
Configure database
# Create database createdb fastapi_template # Run migrations alembic upgrade head -
Start the development server
python main.py
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add eslam5464/fastapi-template