Set up Sitecore XM Cloud using .NET Core on your local machine
Are you a .NET enthusiast?
If so, here’s how to set up Sitecore XM Cloud using .NET Core on your local machine.
Follow these steps:
Step 1: Download the `xmcloud-starter-dotnet` from the link below.
https://github.com/Sitecore/xmcloud-starter-dotnet.git
Step 2: Open the `aspnet-core-starter` solution and update the `appsettings.json` file with the following fields:
"EdgeContextId" - Your Sitecore edge preview or live context ID. ("Use the preview ID for recommendations aimed at developers.")
"DefaultSiteName" - The name of your site.
"EditingSecret" - Your JSS editing secret ID.
if you don't know how to get that information
Log into the Sitecore Deploy Portal
Click on the Developer Settings tab and make note of the
JSS_EDITING_SECRETandSITECORE_EDGE_CONTEXT_IDvalues shown.
Just hit F5, and you’re all set!
Step 3: Create a tunnel to make the URL public.
Set up the tunnel as indicated.
Run the application; it should start on a specific URL.
Step 4: Copy the URL and update it in the rendering host.
Navigate to the following Sitecore path to create a new rendering host:
`/sitecore/templates/Foundation/JSS Experience Accelerator/Scaffolding/RenderingHost`
Finally, don't forget to update the editing host.
Once these steps are completed, the XMC page editor will function smoothly and load without any issues. Everything should be operating perfectly, providing an efficient editing experience.
If you encounter any difficulties or have questions, don’t hesitate to get in touch with me. I’m here to help and support you in any way I can.









Comments
Post a Comment