Sitecore JavaScript Services

 Sitecore JavaScript Rendering SDK (JSS)

What Is Sitecore Jss:

Sitecore JSS offers front-end developer of whole new way of working and interacting with Sitecore. Building a JavaScript app on top of Sitecore has never been easier. Simply use your Favourite JavaScript framework and leverage the Sitecore capabilities to power your applications.

What is Headless Development:

Sitecore Headless Development is based on a rendering host front end and a Sitecore instance back end. This decoupling of logic domains makes a Sitecore solution easy to develop, maintain, scale, and upgrade.

Sitecore ASP.NET  Rendering SDK - https://doc.sitecore.com/xp/en/developers/hd/200/sitecore-headless-development/sitecore-asp-net-rendering-sdk.html



Getting started with the latest version of Jss Application

To develop a JSS application, you need:

  • Ø  An operating system supported by Node (Mac, Windows, Linux).
  • Ø  Node. We recommend using the latest long-term support (LTS) release.
  • Ø  Make With Any Name A folder for Jss Application in Your Local PC.


To Create a JSS Project:

Step 1: Open Command Prompt (CMD) in Admin mode In Your Project Location.

Step 2: Check node version Using: node -v

Step 3: Install Sitecore Jss CLI Using:  npm install -g @sitecore-jss/sitecore-jss-cli


Step 4: Check JSS version using:    jss -version

Step 5: Create jss Aplication using react Framework using: npm init sitecore-jss


Ø  Which template would you like to create? react

Ø  Where would you like your new app created? C:\Project\react

Initializing 'react'...

Ø  What is the name of your app? jssfreshapp

Ø  What is your Sitecore hostname (used if deployed to Sitecore)? jssfreshapp.dev.local

Ø  How would you like to fetch Layout and Dictionary data? REST

Ø  Which additional language do you want to support (en is already included and required)? da-DK


After These Steps Your npm ready to install Automatically:


And Showing the Window Like This on CMD:


And Showing the Folder Like This on Local:


Step 6: To Start the Application Follow Some More Steps:

Ø cd react


v   Set-ExecutionPolicy UnRestricted (If Required)

v   Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Unrestricted" (If Required)

Ø  jss start


After Successfully Running This command You Get A Window Like This on CMD:


After That You Can Browse the Local Address on Server (Google, chrome, Microsoft Edge) You Get the Window Like This:


Now We have Successfully Installed the Sitecore Jss in System.

[Reference From : https://developers.sitecore.com/content-management/headless#introduction , https://doc.sitecore.com/xp/en/developers/hd/200/sitecore-headless-development/index-en.html]

Error’s While Installing Sitecore JSS

1. If Getting Error On LocalHost Use Following Step:

Ø  Open this link in edge browser: edge://net-internals/#hsts

Ø  Scroll to the bottom where it says Delete domain security policies and enter "localhost" and delete.

Ø  Reopen localhost:3000/

2. Open PowerShell in Your Project , react Folder And Run :

  •  Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Unrestricted"
  •  jss sc affold react

 

Thanks For Reading My Blogs. You Can Also Continue Your Learning By Reading These More Blogs - 


Comments

  1. Good Article, Described in Step by Step.. Thanks

    ReplyDelete
  2. Informative Article 🔥🔥

    ReplyDelete

Post a Comment

Read More Blogs Here....

LaMDA Software

Component In Sitecore / Create One Column Component In Sitecore:

Blockchain Technology

Sitecore PowerShell : Part 1

Contact Me/Any Suggestion

Name

Email *

Message *