Expert in Blazor development. Available for project collaborations!
Contact me

Clean Architecture Solution For Razor Pages

Apr 4, 2025

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

Getting Started

The easiest way to get started is to install the NuGet package and run dotnet new ca-sln:

  1. Install the latest .NET 9 SDK
  2. Run dotnet new --install Clean.Architecture.Solution.Template to install the project template
  3. Create a folder for your solution and cd into it (the template will use it as project name)
  4. Run dotnet new ca-sln to create a new project
  5. Navigate to src/WebUI/ClientApp and run npm install
  6. Navigate to src/WebUI/ClientApp and run npm start to launch the front end (Angular)
  7. Navigate to src/WebUI and run dotnet 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.

Want to know more about what I’m working on?

My GitHub showcases most of my projects and ideas. Feel free to take a look and explore more technical possibilities together.

Check out my GitHub