Create a JSS project for the latest versions of JSS and Sitecore
The tooling provided by JSS helps you create a JSS application for the newest version of Sitecore.
To develop a JSS application, you must have:
-
An operating system supported by Node (Mac, Windows, Linux).
-
Node. We recommend using the latest long-term support (LTS) release.
To run a JSS application in production or develop using Sitecore data, you must connect your application to a Sitecore instance with the Headless Services module.
Sitecore requires Windows, but the Sitecore instance does not have to be local. You can use a Sitecore instance installed in a virtual machine or on a remote server.
To create a JSS project:
-
In a terminal, invoke the JSS app initializer using the following command and answer the questions when prompted:
RequestResponsenpx create-sitecore-jss@ver20
TipFor alternative commands and details, see the documentation for the JSS app initializer .
NoteThis command scaffolds a JSS application based on the latest version of JSS templates. To create an application based on an older version of JSS and Sitecore, refer to Create a JSS app for an older version of Sitecore.
-
Change the directory to your application folder:
RequestResponsecd my-first-jss-app
-
Start the development server:
RequestResponsejss start
For framework-specific walkthroughs and more detailed guides, start with the guide for developing JSS applications.