Website Development Company in Singapore
⟵ Resources

Setup Sitecore JSS application

Setup Sitecore abstract banner

Before starting to create JSS application, we need to understand what is a Sitecore JSS.

What is a JSS

Sitecore JavaScript Services (JSS) is a complete SDK for JavaScript developers that enables you to build full-fledged solutions using Sitecore and modern JavaScript UI libraries and frameworks.

Sitecore JSS support Angular, React and Vue JavaScript framework.

Angular logo, React logo and Vue.js logo

How to create a JSS application?

Firstly, to develop a JSS application, Node needs to be installed into your system.

Install the JSS Command Line Application

  • CLI makes it easy to create a new project, scaffold components, deployment of your JSS application, etc.
  • To installed CLI globally, run below command in the command prompt:

npm install -g @sitecore-jss/sitecore-jss-cli

Run npm install command

Create a JSS application

To create a JSS application, need to follow the below steps:

  • Create a folder with any project name
  • In project folder, run jss create <your-app-name> <app-template-name> command

Highlight App name and app template name

Just like below jss create jssdemo react

Run jss create jssdemo react command

After executing above command, you will see screen like below image.

JSS application is ready
Run JSS Application

To start application in disconnected mode, first run cd jssdemo command to change directory.

Go to jssdemo directory

now run jss start command to run application in disconnected mode.

Setup Sitecore JSS application

Application will be run in browser in this URL http://localhost:3000/

Show localhost value with port 3000

 

This article originally appeared on SWATI GUPTA (SITECORE MVP) | BLOGS

(https://swatiguptablogs.blogspot.com/).

How to install Sitecore Commerce 9 Update 2 on the machine has an existing XC 9.0.X

Websparks Earns LowCarbonSG Certification for Sustainability Efforts

Portfolios

Resources

Contact Us

Website Development Company in Singapore white logo
LowCarbonSG Logo
Terms & Conditions | Privacy Policy | Accessibility Statement

Apply Now!

Upload Resume (with a 2mb maximum file size)
Accepted file types: doc, docx, pdf, xps, Max. file size: 2 MB.
This field is for validation purposes and should be left unchanged.