Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.58 KB

File metadata and controls

61 lines (40 loc) · 2.58 KB

CleanArchitecture MudBlazor Blazored Web App

CleanArchitecture.MudBlazored

This is a solution template for creating a MudBlazor Web App with client side rendering 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

Create a new app:

dotnet new clean-architecture-mudblazored --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.

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:

License

This project is licensed with the MIT license.