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