CCF Clean Web API nuget template is ready-to-use project template for creating dotnet core minimal api using Clean Architecture, leveraging ccf clean web api features.
- Clean Architecture
- CQRS
- MediatR
- Repositories (Generic Repositories)
- Model Mapping (Automapper)
- Validation (FluentValidation)
- Memory Caching
- Dotnet Core Minimal API
- Entity Framework Core (Database)
- Swagger
- API Versioning
- Global Exception Handling
- Logging (NLog)
- Dependency Injection
- Generic API Http Client Handler
- Authentication Support
- Option Pattern
- .NET 8.0
-
Install CCF Clean Web API Template
dotnet new install CCF.Clean.Dotnet.WebAPI
NOTE: The template only needs to be installed once. Running this command again will update your version of the template. Specify the version to get specific version of template.
-
Create a new directory
mkdir CCFDemoWebApp cd CCFDemoWebApp
-
Create a new solution
dotnet new CCFClean.WebApi --name {{SolutionName}} --output .\
NOTE: Specify {{SolutionName}}, this will be used as the solution name and project namespaces.