This project was generated with Angular CLI version 1.6.0.
Check JSS documentation for how to install JSS Server and configure Sitecore.
npm install
oryarn
npm install -g @sitecore-jss/sitecore-jss-cli
oryarn global add @sitecore-jss/sitecore-jss-cli
jss setup
This setup is optional to get started with development, as it assumes you have Sitecore installed.
If you answer "yes", you would need to provide the path to your Sitecore installation's "Website" folder.
Run jss start
.
The app will be built and webpack server will be started. So it's expected that the browser will open with http://localhost:3001
and familiar default welcome content is rendered.
The app will automatically reload if you change any of the source files.
When running the development server, it automatically sets up a sitecore mock server configures a proxy that forwards all requests to /sitecore
to that sitecore mock server. Check proxy.conf.js
to see mock server and proxy implementation.
The app is now running in dev mode sourcing data from local files and is not connected to Sitecore in any way.
- Sitecore instance has JSS packages installed.
- Sitecore is configured for this JSS app.
Run jss deploy package
.
This step will:
- Run the production bundle of your app.
- Generate the app manifest.
- Generate a package with the manifest and production bundle.
- Install the package over HTTP on your Sitecore instance.