Skip to content

Clean Architecture Solution Template for ASP.NET Core

License

Notifications You must be signed in to change notification settings

Chindara/clean-arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clear Architecture Solution Template

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! ⭐

Technologies

.NET 8 EF Core 8 Serilog Mediatr Fluent Validation MailTrap

Getting Started

The following prerequisites are required to build and run the solution:

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

Configurations

Once the solution is created, go to appsettings.json file & update the followings

Database (MSSQL Server)

"ConnectionStrings" section with your connection string.

Email (MailTrap)

"EmailSettings" section with your MailTrap details.

About

Clean Architecture Solution Template for ASP.NET Core

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published