Demonstrates embedding a JSS React application within a non-JSS Sitecore site. Useful for sites where a full JS application is not desired, but smaller applications are still needed within a larger whole.
Consult the primary JSS documentation at https://jss.sitecore.net for the latest documentation on JSS.
First run npm i to install dependencies.
Second, if you have not already, install the JSS CLI: npm install -g @sitecore-jss/sitecore-jss-cli. Then choose how to run the application:
- Install the JSS server components on your local Sitecore installation according to the JSS documentation
jss setupto configure the connection to a local Sitecore installation- Review the application config patch file in
sitecore/configto ensure that it is configured appropriately for your Sitecore installation. jss deploy configto deploy the Sitecore config patch file to the Sitecore instance (you may need to add thehostNameto yourhostsfile)- Use
jss deploy packageto deploy the sample to Sitecore - Visit
$sitecoreHost/EmbeddedWizard/Wizardto see the demonstration running in Sitecore