ahmetkocadogan / RapidBlazor

Clean Architecture Solution Template for Blazor WebAssembly .NET 7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rapid Blazor Template for .NET

Build+Deploy Nuget Nuget Discord Twitter Follow

This is a solution template for creating a Blazor WebAssembly application hosted on ASP.NET Core 7 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 7 SDK.

Install the project template:

dotnet new install JasonTaylorDev.RapidBlazor

Create a new app:

dotnet new rapid-blazor-sln --output RapidBlazor21

Launch the app:

cd RapidBlazor21\src\WebUI\Server
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\Server

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

Deploy

The project can easily be deployed to Azure using the included GitHub Actions workflows and Bicep templates. Review the Deployment instructions to learn how.

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.

About

Clean Architecture Solution Template for Blazor WebAssembly .NET 7

License:MIT License


Languages

Language:C# 86.8%Language:HTML 7.7%Language:CSS 2.1%Language:Bicep 2.0%Language:PowerShell 1.2%Language:Gherkin 0.1%Language:JavaScript 0.0%