This is a sample Orchard Core CMS project to demonstrate Orchard Core modules using server-side Blazor components. The idea is to be able to build a modularized CMS website using server-side Blazor components mixed in the MVC architecture. If you are planning to build a decoupled CMS websites or a Blazor-only SPA then another approach might be required. This repository is based on an sample in this repository: https://github.com/barthamark/Orchard-Core-Blazor-Sample
- Clone the repository, restore and build. Please note that the solution uses the preview version of Orchard Core (1.9.0-preview-18170) build, support for this package might drop in the furure.
- Set up the Orchard Core website using the
Blazor Sample
recipe. You can use any recipe but make sure to enable theMyTheme.OrchardBlazor
theme and theBlazorEnabledModule module
. - You can test Blazor components under the
/home/index URL
, (this should also be the landing page served as the root of the site). - Explanations are in the comments. Please make sure you go through the source code, more specifically go to:
BlazorEnabledModule/Startup.cs
BlazorEnabledModule/Views
(see all files)MyTheme.OrchardBlazor/Views/Layout.cshtml