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 setup
to configure the connection to a local Sitecore installation- Review the application config patch file in
sitecore/config
to ensure that it is configured appropriately for your Sitecore installation. jss deploy config
to deploy the Sitecore config patch file to the Sitecore instance (you may need to add thehostName
to yourhosts
file)- Use
jss deploy package
to deploy the sample to Sitecore - Visit
$sitecoreHost/EmbeddedWizard/Wizard
to see the demonstration running in Sitecore