Walkthrough: Getting started with JSS for Angular
How to create and run your first JSS for Angular application.
This walkthrough describes how to create and run your first JSS Angular application.
Before you can create and run an application with JSS for Angular, you must first:
-
Familiarize yourself with the available application modes for JavaScript apps built with JSS.
This walkthrough describes how to:
-
Create the application.
-
Run the application.
Create the application
To create an application with JSS for Angular:
-
Run the following command:
RequestResponseshellnpx create-sitecore-jss@ver20 angular [--appName <your-app-name> --fetchWith [REST| GraphQL]]
Run the application
To start the application, run one of the following scripts in a terminal, depending on your chosen development workflow:
You can find script definitions in the package.json
file of your new JSS application.
-
If you do not have a Sitecore instance available, start the application in disconnected mode:
RequestResponseshelljss start
-
If you have a Sitecore instance and want to develop against it, connect the application to the instance and start it in connected mode:
RequestResponseshelljss start:connected