GitPedia

CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core

From jasontaylordev·Updated June 15, 2026·View on GitHub·

The goal of this template is to provide a straightforward and efficient approach to enterprise application development, leveraging the power of Clean Architecture and ASP.NET Core. Using this template, you can effortlessly create a new app with Angular, React, or Web API only, powered by ASP.NET Core and Aspire. Getting started is easy - simply install the **.NET template** (see below for full details). The project is written primarily in C#, distributed under the MIT License license, first published in 2019. It has gained significant community traction with 20,211 stars and 4,228 forks on GitHub. Key topics include: angular, asp-net, aspire, clean-architecture, dotnet.

Latest release: v10.8.0
March 23, 2026View Changelog →

Clean Architecture Solution Template

Build
CodeQL
Nuget
Nuget
Twitter Follow

The goal of this template is to provide a straightforward and efficient approach to enterprise application development, leveraging the power of Clean Architecture and ASP.NET Core. Using this template, you can effortlessly create a new app with Angular, React, or Web API only, powered by ASP.NET Core and Aspire. Getting started is easy - simply install the .NET template (see below for full details).

For full documentation, visit cleanarchitecture.jasontaylor.dev.

If you find this project useful, please give it a star. Thanks! ⭐

Getting started

Prerequisites

  • .NET 10.0 SDK or later
  • Node.js (LTS) — only required if you plan to use the Angular or React frontend
  • Docker Desktop or Podman (or any OCI-compliant container runtime) — only required when using SQL Server or PostgreSQL. Not required when using SQLite (the default).

Install the template

bash
dotnet new install Clean.Architecture.Solution.Template

Create a new solution

Create a new solution using the template. Specify the client framework using --client-framework (-cf) and the database provider using --database (-db):

bash
dotnet new ca-sln --client-framework [angular|react|none] --database [postgresql|sqlite|sqlserver] --output YourProjectName
OptionValuesDefault
--client-frameworkangular, react, noneangular
--databasepostgresql, sqlite, sqlserversqlite

Examples:

🅰️ Angular SPA with ASP.NET Core Web API and PostgreSQL:

bash
dotnet new ca-sln -cf angular -db postgresql -o YourProjectName

⚛️ React SPA with ASP.NET Core Web API and SQL Server:

bash
dotnet new ca-sln -cf react -db sqlserver -o YourProjectName

🔌 ASP.NET Core Web API only with SQLite:

bash
dotnet new ca-sln -cf none -db sqlite -o YourProjectName

💡 Tip: Run dotnet new ca-sln --help to see all available template options.

Run the app

bash
dotnet run --project .\src\AppHost

The Aspire dashboard will open automatically, showing the application URLs and logs.

To learn more, see the Getting started guide and Architecture overview.

Technologies

Versions

The main branch is on .NET 10.0. Previous versions are available:

VersionBranch
.NET 9.0net9.0
.NET 8.0net8.0
.NET 7.0net7.0
.NET 6.0net6.0
.NET 5.0net5.0
.NET Core 3.1netcore3.1

Architectural decisions

Key design decisions are documented as Architecture Decision Records.

Learn more

Support

If you are having problems, please let me know by raising a new issue.

License

This project is licensed under the MIT License.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from jasontaylordev/CleanArchitecture via the GitHub API.Last fetched: 6/15/2026