Clean.Architecture.Solution.Template 8.0.0-preview.5.1

This is a prerelease version of Clean.Architecture.Solution.Template.
There is a newer version of this package available.
See the version list below for details.
dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5.1
This package contains a .NET Template Package you can call from the shell/command line.

Build CodeQL Nuget Nuget Discord Twitter Follow

Clean Architecture Solution Template

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 Single Page App (SPA) with ASP.NET Core and Angular or React, while adhering to the principles of Clean Architecture. Getting started is easy - simply install the .NET template (see below for full details).

Technologies

Getting Started

The easiest way to get started is to install the .NET template and run dotnet new ca-sln:

  1. Install the latest versions of .NET 8 SDK and Node.js LTS
  2. Run dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.5 to install the .NET template
  3. Run dotnet new ca-sln -c <Angular|React> --output <YourProjectName> to create a new project
  4. Navigate to YourProjectName/src/WebUI and launch the project using dotnet run

Database

The template is configured to use an in-memory database by default. This ensures that all users will be able to run the solution without needing to set up additional infrastructure (e.g. SQL Server).

If you would like to use SQL Server, you will need to update WebUI/appsettings.json as follows:

  "UseInMemoryDatabase": false,

Verify that the DefaultConnection connection string within appsettings.json points to a valid SQL Server instance.

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

Database Migrations

To use dotnet-ef for your migrations first ensure that "UseInMemoryDatabase" is disabled, as described within previous section. Then, add the following flags to your command (values assume you are executing from repository root)

  • --project src/Infrastructure (optional if in this folder)
  • --startup-project src/WebUI
  • --output-dir Persistence/Migrations

For example, to add a new migration from the root folder:

dotnet ef migrations add "SampleMigration" --project src\Infrastructure --startup-project src\WebUI --output-dir Persistence\Migrations

Versions

The main branch is now on .NET 8.0. The following previous versions are available:

Learn More

Support

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

License

This project is licensed with the MIT license.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.5 4,293 3/7/2024
8.0.4 1,207 3/3/2024
8.0.3 2,459 2/15/2024
8.0.2 7,358 11/23/2023
8.0.1 1,723 11/22/2023
8.0.0 6,389 11/15/2023
8.0.0-preview.7.2 3,727 8/29/2023
8.0.0-preview.7.1 84 8/29/2023
8.0.0-preview.6.18 1,090 8/6/2023
8.0.0-preview.6.17 173 8/3/2023
8.0.0-preview.6.16 147 8/2/2023
8.0.0-preview.6.15 117 8/1/2023
8.0.0-preview.6.14 212 7/30/2023
8.0.0-preview.6.13 84 7/30/2023
8.0.0-preview.6.12 132 7/29/2023
8.0.0-preview.6.11 200 7/26/2023
8.0.0-preview.6.10 228 7/23/2023
8.0.0-preview.6.9 223 7/19/2023
8.0.0-preview.6.8 91 7/19/2023
8.0.0-preview.6.7 114 7/19/2023
8.0.0-preview.6.6 128 7/18/2023
8.0.0-preview.6.5 183 7/16/2023
8.0.0-preview.6.4 115 7/16/2023
8.0.0-preview.6.3 141 7/14/2023
8.0.0-preview.6.2 105 7/14/2023
8.0.0-preview.6.1 145 7/13/2023
8.0.0-preview.6 113 7/12/2023
8.0.0-preview.5.15 96 7/12/2023
8.0.0-preview.5.14 212 7/9/2023
8.0.0-preview.5.13 108 7/9/2023
8.0.0-preview.5.12 109 7/8/2023
8.0.0-preview.5.11 82 7/8/2023
8.0.0-preview.5.10 87 7/8/2023
8.0.0-preview.5.9 84 7/8/2023
8.0.0-preview.5.8 84 7/8/2023
8.0.0-preview.5.7 97 7/8/2023
8.0.0-preview.5.6 94 7/7/2023
8.0.0-preview.5.5 199 7/5/2023
8.0.0-preview.5.4 114 7/5/2023
8.0.0-preview.5.3 144 7/4/2023
8.0.0-preview.5.2 252 6/29/2023
8.0.0-preview.5.1 145 6/26/2023
8.0.0-preview.5 166 6/18/2023
7.0.2 8,743 6/14/2023
7.0.1 7,305 2/21/2023
7.0.0 7,300 10/19/2022
6.1.0 8,921 6/6/2022
6.0.8 2,863 6/1/2022
6.0.7 3,066 5/25/2022
6.0.6 6,005 5/24/2022
6.0.5 2,522 5/21/2022
6.0.2 2,775 5/20/2022
6.0.1 9,462 11/13/2021
6.0.0 2,802 11/10/2021
1.1.5 7,768 7/10/2021
1.1.4 10,421 12/2/2020
1.1.2 2,801 11/24/2020
1.1.1 8,640 5/20/2020
1.1.0 4,724 4/11/2020
1.0.10 3,288 3/30/2020
1.0.9 2,928 3/26/2020
1.0.8 3,170 3/24/2020
1.0.7 3,193 3/23/2020
1.0.6 4,084 2/6/2020
1.0.5 4,353 12/9/2019
1.0.4 4,214 11/13/2019
1.0.3 3,129 10/17/2019
1.0.2 3,290 10/16/2019
1.0.1 3,069 10/10/2019

Added support for React.