Skip to main content
RapidKit

FastAPI DDD Kit

Opinionated FastAPI starter aligned with domain-driven design practices.

v0.1.0
Apache-2.0
fastapi
fastapi
modular
ddd
clean-architecture

Quick Start

Create a new project:

npx rapidkit create project fastapi.ddd my-project

1. Install RapidKit CLI first

2. Run the command above

3. Follow interactive prompts

Create with Wizard

Overview

An advanced FastAPI starter kit implementing Domain-Driven Design (DDD) and Clean Architecture principles. Features a layered architecture with clear separation between domain, application, infrastructure, and presentation layers. Ideal for complex business applications.

How to Use

Step 1: Install RapidKit CLI

pipx install rapidkit-core

Or use: pip install rapidkit-core

Step 2: Create Your Project

npx rapidkit create project fastapi.ddd my-project

Replace my-project with your desired project name

Step 3: Navigate and Install Dependencies

cd my-project
npx rapidkit init

Step 4: Start Development Server

npx rapidkit dev

Your API will be available at http://localhost:8000

Quick Tip

Use the interactive wizard for a guided setup experience: npx rapidkit create project

Architecture

Domain-Driven Design (DDD) + Clean Architecture

This kit implements domain-driven design (ddd) + clean architecture to ensure scalability, maintainability, and testability of your application.

Key Features

Clean Architecture implementation
Domain-Driven Design patterns
Layered project structure
Repository pattern
Use case-driven development
Result type for error handling
Dependency injection
Advanced testing structure

Capabilities

Domain model isolation
Application use cases
Infrastructure abstractions
Presentation layer separation
Interface-driven design
Repository implementations
Module injection points
Comprehensive testing

Tech Stack

FastAPI
Python 3.10+
Poetry
Uvicorn
Pydantic
Docker
DDD Patterns

Perfect For

Complex business applications
Enterprise systems
Domain-rich applications
Scalable microservices
Mission-critical APIs

Module Support

Free Modules
Paid Modules
Community Modules
Enterprise Modules

Environments

Development

Development environment with hot reload

Production

Production environment optimized for performance

Default Settings

Python Version:3.10
Docker:
CI/CD:
Testing: