{"repo":"BrunoTanabe/fastapi-clean-architecture-ddd-template","free":true,"listed":false,"github":"https://github.com/BrunoTanabe/fastapi-clean-architecture-ddd-template","clone":"git clone https://github.com/BrunoTanabe/fastapi-clean-architecture-ddd-template.git","description":"Python FastAPI backend template, organized by Clean Architecture layers (domain, application, infrastructure, presentation) and DDD principles. Includes dependency management, Docker support, testing boilerplate, CI-friendly setup and best practices, modular scaffolding to jump-start new projects and ensure long-term maintainability.","language":"Python","stars":16,"topics":["clean-arch","clean-architecture","clean-architecture-example","clean-architecture-template","clean-code","cleanarchitecture","cleancode","ddd","domain-driven-design","fastapi"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"FastAPI Clean Architecture and DDD Template A production-shaped Python backend template — Clean Architecture, Domain-Driven Design, and everything already wired. English · Português --- Most \"clean architecture\" templates give you empty folders and a diagram. This one gives you a working application : cookie-based authentication with nested JWTs, API-key management with rotation, role-based access control enforced twice over, Redis cache-aside with tombstone invalidation, real-time WebSocket delivery, notifications with role fan-out, and a Docker stack that migrates itself on boot. Nine modules, twenty-three routes, seven tables — all following one consistent set of patterns you can copy for the tenth module. Table of Contents - Why This Template - Quick Start - Architecture - Modules - API Reference - Security - Data - Caching - Development - Configuration - Known Limitations - Contributing - License --- Why This Template Feature What you actually get --- --- --- 🏛️ Clean Architecture + DDD Four layers per module with enforced dependency direction. domain/ imports no framework — ever. 🔐 Authentication, done properly Nested JWT (JWS signed with Ed25519, wrapped in a JWE encrypted with ECDH-ES + A256GCM), delivered in HTTP-only cookies, with HMAC fingerprints stored server-side so tokens are revocable. 🔑 API keys Full lifecycle — create, list, rotate, revoke. The raw key is returned exactly once and never stored. 👥 Role-based access admin / manager / user , enforced by the","default_branch":null,"files":null,"tree":[],"storefront":"/r/BrunoTanabe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BrunoTanabe/fastapi-clean-architecture-ddd-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}