Giter Site home page Giter Site logo

oc-mt-blazor8-iserver's Introduction

Orchard Core Multitenant Decoupled Blazor InteractiveServer Example

.NET8


Based on PR here Guide for decoupled CMS.

This example was made with the following tenants.js

{
  "Default": {
    "VersionId": "4bebppwpp0m3ts3f213g4584cm",
    "TenantId": "4cn6tq65x3cyn27y80ac6e95n3",
    "State": "Running"
  },
  "firsttenant": {
    "VersionId": "4gfc0j2ezgpyc7xxqth4r5sdwj",
    "TenantId": "49dw6s44shsxtt4y6ky6q5y05w",
    "RequestUrlPrefix": "first",
    "State": "Running"
  },
  "second": {
    "VersionId": "48mxfjxs9d17at1nxvp7w1944m",
    "TenantId": "4f2ppdm35cyrj67eaf71sw2x5s",
    "RequestUrlPrefix": "second",
    "State": "Running"
  }
}

Default, first and second.*


The content can be imported in each tenant after the tenants are created and setup.

See the Recipe.json in the Recipes folder.

(Use https://localhost:5001/Admin/DeploymentPlan/Import/Json to import it on the Default host, https://localhost:5001/first/Admin/DeploymentPlan/Import/Json on the tenant 'first' etc.)


Base Url

Every SPA (including Blazor, even when running server side) needs to know the base Url.

To make sure the right base url is set, ns8482e pointed out here oc github discussion, that this could be done with little effort.

I created a MultiTenantBaseUrlProvider component that, used as markup, renders the correct <base /> element for each tenant.

Not the best way, but for starters, I made sure each tenant can have its own favicon.

oc-mt-blazor8-iserver's People

Contributors

psijkof avatar

Stargazers

Allan Nielsen avatar Denier Marketing cc Gert Smith avatar Osvaldo avatar

Watchers

Osvaldo avatar Allan Nielsen avatar  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.