Skip to content

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.

Notifications You must be signed in to change notification settings

furkanaltintas/NET9_Clean_Architecture_CQRS_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages