This is the documentation set to accompany the Blazor Clean Design Template GitHub Repositories.
There are two repositories:
The template demonstrates:
It uses the three domain model to structure the solution.
The structure is enforced through projects. Each domain has a project, with project dependencies enforcing code dependencies:
The solution consists of nine projects. This may at first seem overkill, but it organises your code logically. The projects enforce the design dependencies and separation of concern principles.
BlazorWebAssembly
project. It builds the WASM compliant code to deploy to the browser.AspNetCore
Web project, configured to support the Blazor Server Hub, and contains the launch file for the Blazor Server SPA.AspNetCore
Web project configured to provide server side files for the WASM SPA, the launch file for the Blazor Server SPA, and any API conbntrollers.The solution can be run with either Web project as the startup project: