This is a solution template for Clean Architecture and CQRS implementation with ASP.NET Core
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
Visual Studio 2022
.NET 6.0 Runtime
dotnet new --install ASPNETCleanTemplate.nuspec::3.2.6
dotnet new aspnetcleantemplate -n MyNewCleanTemplate
Set default project to Persistence
Run following code in Package Manager Console
Update-Database -Context AppDbContext
https://Url:Port/healthchecks-ui
- ASP.NET Core
- Entity Framework Core
- MediatR
- Swagger
- Redis (for distributed caching)
- Jwt Token Authentication
- Custom Asp.Net Identity
- Api Versioning
- FluentValidation
- PolyCache (for caching)
- Serilog
- Elasticsearch (for writing Logs)
- AutoMapper
- Docker
- Clean Architecture
- Clean Code
- CQRS
- Authentication and Authorization
- Distributed caching
- Solid Principles
- Separate ReadOnly and Write DbContext
- Separate ReadOnly and Write Repository
- REST API Naming Conventions
- Use multiple environments in ASP.NET Core (Development,Production,Staging,etc)
- Modular Design
- Custom Exceptions
- Custom Exception Handling
- PipelineBehavior for Validation and Performance tracking.