Saturday, December 30, 2023

How to setup Sitecore 10.X Next JSS without Docker?

  Are you willing to set up Sitecore 10. x Next JSS without Docker?

- This blog will help you set up the Sitecore JSS application in the local environment without Docker.

   Here are the instructions to install Sitecore 10.3 locally without dockers.

System Prerequisites: 

Microsoft SQL Server 2017 or 2019.

SQL Server Management Studio (SSMS) Download SSMS https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16 

Steps to Install Sitecore: 

  1. Download Sitecore Installer  https://sitecoredev.azureedge.net/~/media/8F77892C62CB4DC698CB7688E5B6E0D7.ashx?date=20221130T160548
  2. Open SQL Server Management Studio and Run the following command in the query window, while the master database is selected

EXEC sp_configure 'contained', 1;

RECONFIGURE;

  1. Create Folder c:\Sitecore\v10.3 Copy the Zip file from step 1 in this folder and extract it.
  2. Copy the attached license and JSON files into this folder, if prompted to overwrite an existing file, Overwrite it.
  3. Run the Setup.exe file in folder
  4. Go through the wizard and install the pre-requisites first
  5. Follow the prompts in the Wizard. It will install Solr and Sitecore. unselect Sitecore Experience Accelerator(SXA) when prompted for optional modules
  6. Once Sitecore is installed in the last step of the wizard launch Sitecore to make sure your Sitecore Size is working
  7. Open Power Shell in administrator mode and switch to directory C:\Sitecore\v10.3\Sitecore 10.3.0 rev. 008463 (Setup XP0 Developer Workstation rev. 1.5.0-r11)
  8. Run the following commands one by one to create SSL certificates
    1. scinst -CertificateName cm.{sitename}.localhost
    2. scinst -CertificateName www. {sitename}.localhost
    3. scinst -CertificateName id. {sitename}.localhost
  9. Open Sitecore Site in IIS and add the following two bindings in it as shown
    cm. {sitename}.localhost 
    www. {sitename}.localhost 
                        

                        

      


  1. Open Sitecore Identity Server Site in IIS and add the following binding in it as shown
    id. {sitename}.localhost


                    

  2. Open the certificate manager by executing the command certlm.msc in Run

           

             


  1. Three certificates created in step 10 will be under Personal Certificates



  2. Select and Copy the two certificates and paste them Under Trusted Root Certificate Authority



  1. Open file C:\inetpub\wwwroot\[Sitecore Identity Server Site Name]\Config\production\Sitecore.IdentityServer.Host.xml

    Remove or comment out the original entries sitecore during installation and add new entries as shown below
    <PasswordRecoveryUrl>https://cm. {sitename}.localhost/sitecore/login?rc=1</PasswordRecoveryUrl>
    <AllowedCorsOriginsGroup1>https://cm. {sitename}.localhost</AllowedCorsOriginsGroup1>


  2. Open file C:\inetpub\wwwroot\[Sitecore Site Name]\App_Config\Sitecore\Owin.Authentication.IdentityServer\Sitecore.Owin.Authentication.IdentityServer.config

           Remove or comment out the original entry Sitecore added for the identity server domain and this is shown below,
<sc.variable name="identityServerAuthority" value="https://id. {sitename}.localhost" />



  1. In the browser if you were already logged in to the Sitecore site close the browser and open a new window. Login to your Sitecore Site by going to URL https://cm. {sitename}.localhost/sitecore
  2. Download the Sitecore CLI package from the URL:  https://dev.sitecore.net/Downloads/Sitecore_CLI/5x/Sitecore_CLI_5125.aspx and install it in Sitecore.
  3. Download the Sitecore JSS package from the URL:  https://dev.sitecore.net/Downloads/Sitecore_Headless_Rendering/21x/Sitecore_Headless_Rendering_2101.aspx and install it in Sitecore


Happy learning!









No comments:

Post a Comment

How to Create a Public Link Using the Sitecore Content Hub REST API

Creating a public link using the Sitecore Content Hub REST API is a straightforward process that enables you to share content externally whi...