This template provides a seamless solution by integrating the benefits of Clean Architecture with ASP.NET Core. It allows you to swiftly create an ASP.NET Core Web API, adhering to Clean Architecture principles. The template is pre-configured to use SQL Server, and upon running the application, the database will be automatically created, with the latest migrations applied.
If you find this project useful, please give it a star. Thanks! ⭐
The following prerequisites are required to build and run the solution:
- .NET 8.0 SDK (Latest version)
- MailTrap (If you are using the email feature)
Run the following command to install the .NET template from NuGet
dotnet new install Clean.Architecture.Template.CSharp::1.0.4
Once installed, create a new solution using this template
dotnet new ca-sln -o "<Name of the project>"
To create a new feature by navigate into the root folder & run the below command
dotnet new ca-feat --ProjectName "<Name of the project>" --FeatureName "<Name of the feature>"
dotnet new list - Lists available templates to be run using dotnet new.
dotnet new uninstall - Uninstalls the template
Once the solution is created, go to appsettings.json file & update the followings
"ConnectionStrings" section with your connection string.
"EmailSettings" section with your MailTrap details.





