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