Next.js Clean Architecture Template
This is a demonstration of clean architecture principles with TDD in Next.js. The example below shows a user creation form following domain-driven design patterns.
Create User
Architecture Overview
Domain Layer
Business entities, value objects, and domain services containing core business logic.
Application Layer
Use cases, DTOs, and application-specific business rules orchestrating domain logic.
Infrastructure Layer
External concerns like databases, APIs, and third-party service implementations.
Presentation Layer
React components, pages, and UI logic for user interaction and data presentation.