CleanArchitecture.Blazored 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet new install CleanArchitecture.Blazored::1.0.1
This package contains a .NET Template Package you can call from the shell/command line.

Clean Architecture Template for Blazor.Net

Package Template Nuget

This is a solution template for creating a Blazor WebAssembly application hosted on ASP.NET Core 8 and following the principles of Clean Architecture.

Please consider this a preview, I am still actively working on this template. If you spot a problem or would like to suggest an improvement, please let me know by creating an issue.

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

Getting Started

The solution template requires the latest version of .NET 8 SDK.

Install the project template:

dotnet new install CleanArchitecture.Blazored

Create a new app:

dotnet new clean-architecture-blazored --output CleanArchitecture

Launch the app:

cd CleanArchitecture\src\WebUi\WebUi
dotnet run

Database

Configuration

The template is currently configured to use SQL Server Express LocalDB for development and Azure SQL once deployed. I understand this will be difficult for some developers, and will look other options in the near future.

Migrations

The template uses Entity Framework Core and migrations can be run using the EF Core CLI Tools. Install the tools using the following command:

dotnet tool install --global dotnet-ef

Once installed, create a new migration with the following commands:

cd src\Infrastructure
dotnet ef migrations add "Initial" --startup-project ..\WebUi\WebUi --context ApplicationDbContext --out-dir Data\Migrations

Review the Entity Framework Core tools reference - .NET Core CLI | Microsoft Docs to learn more.

Resources

The following resources are highly recommended:

Support

If you are having problems, please let me know by creating an issue.

License

This project is licensed with the MIT license.

  • net8.0

    • 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
2.0.0 2,001 1/8/2024
1.0.1 425 12/29/2023
0.0.1-alpha 181 12/26/2023

Upgrade to 8.0 RTM