Skip to content

pbering/xmc-demo-dotnethead

Repository files navigation

Minimal .NET 7 head for Sitecore XM Cloud / Experience Edge

...

Getting started

  1. On https://deploy.sitecorecloud.io/ create a new project and an environment named dev.

  2. Clone.

  3. Then authenticate, connect, push and publish items:

    dotnet tool restore
    dotnet sitecore cloud login
    dotnet sitecore cloud project list
    dotnet sitecore cloud environment list --project-id <INSERT PROJECT ID>
    dotnet sitecore cloud environment connect --environment-id <INSERT ENVIRONMENT ID> --allow-write
    dotnet sitecore ser push -n dev
    dotnet sitecore publish -n dev
  4. To get the edge token, download https://github.com/sitecorelabs/sxa-starter/blob/main/New-EdgeToken.ps1 into root and run it: .\New-EdgeToken.ps1 -EnvironmentId <INSERT ENVIRONMENT ID>

  5. To get the jss editing secret, open "showconfig.aspx" and grab the value from the setting named JavaScriptServices.ViewEngine.Http.JssEditingSecret,

  6. Add a new appsettings.Development.json file in the root:

    {
      "Sitecore": {
        "ExperienceEdgeToken": "<INSERT YOUR EDGE TOKEN HERE>",
        "JssEditingSecret": "<INSERT JSS EDITING SECRET HERE>"
      }
    }
  7. That's it, run and you should see a site!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published