Giter VIP home page Giter VIP logo

orchard-core-blazor-sample's Introduction

Orchard Core Blazor Sample

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. If you are planning to build a decoupled CMS websites or a Blazor-only SPA then another approach might be required.

Please note, that implementing a workaround was required to make Blazor static contents (e.g. blazor.server.js) accessible. See: OrchardCMS/OrchardCore#2966 (comment)

How to use this sample

  1. Clone the repository, restore and build. Please note that the solution uses the latest Orchard Core dev build which means that the referenced NuGet packages won't be available after some time. To solve this issue please update the Orchard Core package versions to the latest (which also means that something might broke). After the next major version is released this project should be upgraded as well to use a stable version.
  2. Set up the Orchard Core website using the Blazor Sample recipe. You can use any recipe but make sure to enable the OrchardCoreBlazorSample.Theme theme and the OrchardCoreBlazorSample.Module1 and OrchardCoreBlazorSample.Module2 modules.
  3. You can test Blazor components under the /test/module1 and /test/module2 URLs.
  4. Explanations are in the comments. Please make sure you go through the source code, more specifically go to:
    • OrchardCoreBlazorSample.Web/Startup.cs
    • OrchardCoreBlazorSample.Module1/Startup.cs
    • OrchardCoreBlazorSample.Module2/Views (see all files)
    • OrchardCoreBlazorSample.Module2/Views (see all files)
    • OrchardCoreBlazorSample.Theme/Views/Layout.cshtml

orchard-core-blazor-sample's People

Contributors

barthamark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.