https://github.com/furkanaltintas/net9_clean_architecture_cqrs_api
This project is a .NET 9 API implementation following the Clean Architecture principles. It incorporates CQRS, MediatR, AutoMapper, Fluent Validation, SeriLog, Redis and other best practices to create a modular, scalable, and maintainable API.
https://github.com/furkanaltintas/net9_clean_architecture_cqrs_api
api asp-net-core asp-net-core-web-api automapper clean-architecture clean-code clean-code-architecture cqrs csharp ddd-architecture exception-handler fluent-validation mediatr onion-architecture package-manager pipeline redis serilog unit-of-work web-api
Last synced: 2 months ago
JSON representation
This project is a .NET 9 API implementation following the Clean Architecture principles. It incorporates CQRS, MediatR, AutoMapper, Fluent Validation, SeriLog, Redis and other best practices to create a modular, scalable, and maintainable API.
- Host: GitHub
- URL: https://github.com/furkanaltintas/net9_clean_architecture_cqrs_api
- Owner: furkanaltintas
- Created: 2025-03-15T19:09:37.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-03-15T19:29:10.000Z (2 months ago)
- Last Synced: 2025-03-15T20:25:31.961Z (2 months ago)
- Topics: api, asp-net-core, asp-net-core-web-api, automapper, clean-architecture, clean-code, clean-code-architecture, cqrs, csharp, ddd-architecture, exception-handler, fluent-validation, mediatr, onion-architecture, package-manager, pipeline, redis, serilog, unit-of-work, web-api
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NET9 Clean Architecture CQRS API
## 📌 Project Overview
This project is a .NET 9 API implementation following the Clean Architecture principles. It incorporates CQRS, MediatR, Fluent Validation, and other best practices to create a modular, scalable, and maintainable API.
## 🚀 Technologies Used
.NET 9 - Latest .NET framework version
CQRS - Command and Query Responsibility Segregation pattern
MediatR - Decoupled request handling
Fluent Validation - Elegant and powerful validation
Entity Framework Core - ORM for database interactions
Clean Architecture - Layered architecture for maintainability
## đź”§ Features
âś… Command & Query pattern implementation
âś… Centralized validation with Fluent Validation
âś… MediatR-based request handling
âś… Layered architecture for maintainability
âś… Custom exception handling middleware
âś… Advanced Repository Implementation (Synchronous & Asynchronous)
âś… Dynamic Search Implementation
âś… Automapper-based Request-Response Mapping
âś… Best Practice-Oriented Entity Framework Implementation
âś… Advanced Caching (InMemory & Redis Cache)
âś… Logging with Serilog
## đź“‚ Project Structure
📦NET9_Clean_Architecture_CQRS_API
┣ 📂Application # Business logic and use cases (CQRS, MediatR, Validation)
┣ 📂Domain # Entities and core domain logic
┣ 📂Infrastructure # Data access, external services, and configurations
┣ 📂Persistence # Database interactions, EF Core implementations
┗ 📂WebApi # API controllers, middlewares, and startup configurations## 👨‍🏫 Acknowledgements
This project is developed based on Engin DemiroÄź's "C# .NET Core Clean Architecture & CQRS Project Infrastructure" course.
The project closely follows the content of the course, and I replicated the project as demonstrated by the instructor.