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! ⭐
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
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.
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.
The project can easily be deployed to Azure using the included GitHub Actions workflows and Bicep templates. Review the Deployment instructions to learn how.
The following resources are highly recommended:
-
Deploy Azure resources by using Bicep and GitHub Actions | Microsoft Learn
-
Automate administrative tasks by using PowerShell - Training | Microsoft Learn
If you are having problems, please let me know by creating an issue.
This project is licensed with the MIT license.