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 
  1. Log into the Sitecore Deploy Portal

  2. Click on the Developer Settings tab and make note of the JSS_EDITING_SECRET and SITECORE_EDGE_CONTEXT_ID values shown.



Just hit F5, and you’re all set!



**Note:** The Experience Editor does not function on the XMC page, so we need to follow the steps outlined below.

Step 3: Create a tunnel to make the URL public.

Set up the tunnel as indicated.




Choose the tunnel as indicated below.


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

Popular posts from this blog

How to Enable Voice Search in Sitecore Content Editor

How to Create a Component in Next.js for XM Cloud

How to Create a Custom Component in XM Cloud.