A comprehensive .NET 9 Web API project showcasing Clean Architecture principles and best practices.
This project demonstrates a robust implementation of Clean Architecture, providing a scalable and maintainable solution for building modern web APIs. It leverages cutting-edge technologies and design patterns to create a modular, testable, and extensible application.
- Language & Framework: C#, .NET 9
- ORM: Entity Framework Core
- Architectural Patterns:
- Clean Architecture
- CQRS
- Utilities:
- MediatR
- Mapster
- Serilog
- Databases:
- PostgreSQL (primary database)
- Redis (caching)
- Logging & Monitoring: Seq
- Containerization: Docker
The solution is organized into clear, separated layers:
src/Domain
: Core domain entities and business logicsrc/Application
: Application services, commands, and queriessrc/Infrastructure
: Data access, external service integrationssrc/Web.API
: RESTful API endpointssrc/SharedKernel
: Cross-cutting concerns and shared utilities
Ensure you have the following installed:
-
Clone the Repository
git clone https://github.com/a-kostyuchenko/clean-architecture.git cd clean-architecture
-
Build and Run with Docker
docker-compose up --build
-
API Access
- HTTP:
http://localhost:7070
- HTTPS:
https://localhost:7071
- HTTP:
Contributions are welcome! Feel free to submit a pull request or open an issue.
Email - [email protected]