Clean Architecture Solution Template for ASP.NET Core
The Clean Architecture Solution Template is designed to simplify enterprise application development by leveraging Clean Architecture and ASP.NET Core. It allows developers to easily create a Single Page App (SPA) using Angular and ASP.NET Core while following the principles of Clean Architecture. The template utilizes technologies such as ASP.NET Core, Entity Framework Core, Angular, MediatR, AutoMapper, FluentValidation, and testing frameworks like NUnit, FluentAssertions, Moq, and Respawn. To get started, developers can install the .NET template and run specific commands.
To install the Clean Architecture Solution Template, follow these steps:
dotnet new install Clean.Architecture.Solution.Template to install the .NET template.dotnet new ca-sln --output YourProjectName.YourProjectName/src/WebUI directory.dotnet run.For database configuration:
WebUI/appsettings.json to point to a valid SQL Server instance.To perform database migrations with dotnet-ef, follow these steps:
--project src/Infrastructure (optional if in this folder)--startup-project src/WebUI--output-dir Persistence/Migrationsdotnet ef migrations add "SampleMigration" --project src/Infrastructure --startup-project src/WebUI --output-dir Persistence\MigrationsThe Clean Architecture Solution Template provides developers with a streamlined approach to enterprise application development using Clean Architecture and ASP.NET Core. It offers features such as Angular integration, Entity Framework Core, MediatR, AutoMapper, FluentValidation, and testing frameworks. By following the installation guide, developers can quickly set up the template and start building their applications. Overall, the template promotes maintainability, separation of concerns, and flexibility in application development.