This repo contains both the starter kit with content items and required configuration files.
You can also use this kit to start a vanilla project, simply remove everything from /src/components
and adjust the Sitecore site name from uniform-jss-kit
to whatever you want and get cracking.
- Sitecore 9.x-10.x instance available with Sitecore JSS installed and configured
- "Uniform for Sitecore" installed and configured on your Sitecore instance. Check out the docs.
- Install the Sitecore package with items from
/sitecore/App_Data/packages
folder.
Check out official docs for more scenarios and tutorial.
- Add
NPM_TOKEN
environment variable with the value we provided you with. - Add
JSS_EDITING_SECRET
environment variable with the value from "JavaScriptServices.ViewEngine.Http.JssEditingSecret" setting. npm install
jss setup
and follow the steps Sitecore JSS requires and use the API key you created during the Pre-requisites step above.jss deploy config
to deploy the application config from/sitecore/config
folder into your Sitecore instance.- Configure
.env
file according to your environment specifics (see.env-example
file). npm run build
to build the app.npm run dev
to start development server.npm start
to start the app in connected mode.npm run export
to run static export.
Note: Remove or update the robots.txt
if you going to use this kit in production
See Sitecore documentation on Walkthrough: Connecting a Next.js JSS app to Sitecore editors