Domain-Driven Hexagon is an open-source educational project that demonstrates how to build maintainable backend applications using Domain-Driven Design and Hexagonal Architecture. It combines principles from Clean Architecture, Onion Architecture, SOLID, and secure software design. The repository includes practical TypeScript, Node.js, and NestJS code examples. It explains how to separate business logic from databases, frameworks, and external services. Developers can study entities, aggregates, value objects, domain events, and application services. The project also demonstrates command-query separation, repositories, dependency inversion, and adapter patterns. Additional guidance covers modular application structure, behavioral testing, validation, and architectural enforcement.
Features
- Domain-Driven Design and Hexagonal Architecture
- TypeScript and NestJS Implementation Examples
- Domain Entities, Aggregates, and Value Objects
- Command-Query Separation and Domain Events
- Ports, Adapters, and Repository Patterns
- Behavioral Testing and Architecture Enforcement