Skip to content

Latest commit

 

History

History
62 lines (32 loc) · 1.82 KB

File metadata and controls

62 lines (32 loc) · 1.82 KB

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.