Introduction :
Sitecore JavaScript Services is a toolkit for JavaScript developers allowing to build full-fledged customer solutions (SPAs, web apps, websites) using modern JS libraries and frameworks (React.is, Angular) by being completely unplugged from Sitecore.
Install Sitecore JSS Service:
Installation of Sitecore JSS Service is a breeze, especially if you've had experience installing packages in Sitecore before.
Prerequisites:
- Valid Sitecore JSS License: To confirm if you possess a valid license, you can check your license.xml file for the presence of 'Sitecore.JSS.'
- Sitecore Version: For certain features like the JavaScript Rendering SDKs, such as Next.js, you'll require Sitecore 9.0 Update-1 or a later version. If you intend to leverage these features, it's recommended to have Sitecore newer version installed. In this blog post I am using Sitecore 10.3 Update-1.
To install the JSS, make sure to follow the steps outlined below:
Step 1:
Navigate to Sitecore Headless Rendering 21.0.1 and download the Sitecore Headless Services for Sitecore XP package.
Step 2:
After downloading the package, access Sitecore and navigate to the Desktop. From there, open the Development Tools and select the Installation Wizard. Once the Installation Wizard is loaded, proceed to install the downloaded package file. During the installation process, you'll be prompted to accept the terms and conditions ,accept and click on next then on Install.
once installed open content editor and right click on content then click on insert and you will be able to see Headless Tenant option.
Step 3: Application Setup
- Install latest Node.js ,I am using Node JS v20.6.1
- Launch Windows PowerShell, Navigate to Your Project Directory
- Use the `cd` command to move to the directory where you plan to initiate your project. For instance: cd C:\Sitecore10\10.3\SitecoreJSS
- Install the Sitecore JSS CLI - Execute the following command to globally install the Sitecore JSS CLI: npm install -g @sitecore-jss/sitecore-jss-cli
- After the installation process is complete, type `jss --help` in the PowerShell terminal. You should see an output resembling the following, indicating that the Sitecore JSS CLI is correctly installed and operational.
Environment setup is done I will create a project in my next blog.
Thanks for Reading!!
Comments
Post a Comment