![]() |
VOOZH | about |
dotnet new install Clean.Architecture.Solution.Template@10.8.0
👁 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! ⭐
The following prerequisites are required to build and run the solution:
The easiest way to get started is to install the .NET template:
dotnet new install Clean.Architecture.Solution.Template
Once installed, create a new solution using the template. You can choose to use Angular, React, or create a Web API-only solution. Specify the client framework using the -cf or --client-framework option, and provide the output directory where your project will be created. Here are some examples:
To create a Single-Page Application (SPA) with Angular and ASP.NET Core:
dotnet new ca-sln --client-framework Angular --output YourProjectName
To create a SPA with React and ASP.NET Core:
dotnet new ca-sln -cf React -o YourProjectName
To create a ASP.NET Core Web API-only solution:
dotnet new ca-sln -cf None -o YourProjectName
Launch the app:
cd src/AppHost
dotnet run
To learn more, run the following command:
dotnet new ca-sln --help
You can create use cases (commands or queries) by navigating to ./src/Application and running dotnet new ca-usecase. Here are some examples:
To create a new command:
dotnet new ca-usecase --name CreateTodoList --feature-name TodoLists --usecase-type command --return-type int
To create a query:
dotnet new ca-usecase -n GetTodos -fn TodoLists -ut query -rt TodosVm
To learn more, run the following command:
dotnet new ca-usecase --help
The template supports PostgreSQL, SQLite (default), and SQL Server. Specify the database to use with the --database option:
dotnet new ca-sln --database [postgresql|sqlite|sqlserver]
On application startup, the database is automatically deleted, recreated, and seeded using ApplicationDbContextInitialiser. This is a practical strategy for early development, avoiding the overhead of maintaining migrations while keeping the schema and sample data in sync with the domain model.
This process includes:
For production environments, consider using EF Core migrations or migration bundles during deployment.
For more information, see Database Initialisation Strategies for EF Core.
This template includes built-in API documentation using ASP.NET Core OpenAPI and Scalar. Once the application is running, navigate to /scalar to explore the API using the Scalar UI.
The OpenAPI specification is generated at build time and written to wwwroot/openapi/v1.json.
The main branch is now on .NET 10.0. The following previous versions are available:
If you are having problems, please let me know by raising a new issue.
This project is licensed with the .
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.8.0 | 3,062 | 3/23/2026 |
| 10.7.2 | 312 | 3/21/2026 |
| 10.7.1 | 266 | 3/19/2026 |
| 10.7.0 | 243 | 3/18/2026 |
| 10.6.2 | 324 | 3/16/2026 |
| 10.6.1 | 366 | 3/12/2026 |
| 10.6.0 | 263 | 3/12/2026 |
| 10.5.1 | 260 | 3/11/2026 |
| 10.5.0 | 269 | 3/10/2026 |
| 10.4.1 | 399 | 3/5/2026 |
| 10.4.0 | 205 | 3/5/2026 |
| 10.3.0 | 381 | 3/2/2026 |
| 10.2.1 | 268 | 3/1/2026 |
| 10.2.0 | 225 | 3/1/2026 |
| 10.1.0 | 247 | 2/28/2026 |
| 10.0.0 | 4,608 | 11/11/2025 |
| 9.0.12 | 4,105 | 7/28/2025 |
| 9.0.11 | 1,163 | 7/22/2025 |
| 9.0.10 | 2,871 | 5/23/2025 |
| 9.0.9 | 638 | 5/21/2025 |
## What's Changed
* chore(deps): update .net dependencies by @renovate[bot] in https://github.com/jasontaylordev/CleanArchitecture/pull/1586
* Slim down Todo demo and add colour theming by @jasontaylordev in https://github.com/jasontaylordev/CleanArchitecture/pull/1587
* chore(deps): update dependency react-router-dom to v7.13.2 by @renovate[bot] in https://github.com/jasontaylordev/CleanArchitecture/pull/1588
* chore(deps): update dependency vite to v8.0.2 by @renovate[bot] in https://github.com/jasontaylordev/CleanArchitecture/pull/1589
* chore(deps): update .net dependencies by @renovate[bot] in https://github.com/jasontaylordev/CleanArchitecture/pull/1590
* fix(deps): update lucide monorepo to v1 (major) by @renovate[bot] in https://github.com/jasontaylordev/CleanArchitecture/pull/1592
**Full Changelog**: https://github.com/jasontaylordev/CleanArchitecture/compare/v10.7.2...v10.8.0