Connecting Sitecore and the JSS app
- Sridharan Padmanabhan
- Nov 27, 2024
- 1 min read
Updated: Dec 13, 2024
Prerequisites:
A running instance of Sitecore, with headless rendering installed.
A headless app created using the JSS CLI.
You can navigate to the previous articles from here for doing the same.
Given your Sitecore and headless app are up and running,
Run the following command in the terminal to start the JSS setup -
jss setup
Following are the inputs that would be needed by the setup to complete
Path to Sitecore folder: <your local Sitecore directory>
Sitecore hostname: <your local Sitecore hostname>
Sitecore import service URL: https://<your Sitecore hostname>/sitecore/api/jss/import
Sitecore API Key: Refer Install Sitecore headless rendering services for creating the Sitecore API key
Sitecore deploy secret: <you can generate one by simply hitting Enter>
Upon completion of the setup, a file names scjssconfig.json would be created in the current directory.
The resulting file would look like -
{
"sitecore": {
"instancePath": "C:\\inetpub\\wwwroot\\sc10sc.dev.local",
"layoutServiceHost": "https://sc10sc.dev.local",
"deployUrl": "https://sc10sc.dev.local/sitecore/api/jss/import",
"apiKey": "{208D7214-XXXX-XXXX-XXXX-12578D7D9E30}",
"deploySecret": "r3eviXXXXXngyygXXXXXfngszXXXXXvcdz07tXXXXX6"
}
}

Comments