Clean Architecture Solution For Razor Pages

This is a solution template for creating a Razor Page App with ASP.NET Core following the principles of Clean Architecture. Create a new project based on this template by clicking the above Use this template button or by installing and running the associated NuGet package (see Getting Started for full details).
Technologies
- ASP.NET Core 9
- Entity Framework Core 9
- SmartAdmin - Responsive WebApp
- Razor Pages
- Jquery EasyUI
- MediatR
- AutoMapper
- FluentValidation
- NUnit, FluentAssertions, Moq & Respawn
- Docker
Getting Started
The easiest way to get started is to install the NuGet package and run dotnet new ca-sln
:
- Install the latest .NET 9 SDK
- Run
dotnet new --install Clean.Architecture.Solution.Template
to install the project template - Create a folder for your solution and cd into it (the template will use it as project name)
- Run
dotnet new ca-sln
to create a new project - Navigate to
src/WebUI/ClientApp
and runnpm install
- Navigate to
src/WebUI/ClientApp
and runnpm start
to launch the front end (Angular) - Navigate to
src/WebUI
and rundotnet run
to launch the back end (ASP.NET Core Web API)
License
This project is licensed under the MIT License, which is a permissive open-source license. You are free to use, modify, and distribute the code for both personal and commercial purposes, as long as the original license and copyright notice are included.