This site is built with Sitecore JSS and is used to support the presentation on "How to get to the sub-second page load times in the real world with Sitecore JSS" by Alex Shyba.
npm install
npm run dev
orjss dev
.
-
For GA, acquire your tracking code
UA-xxxx-x
from GA and pass as an environment variable in.env
file:REACT_APP_GA=UA-xxxx-x
See
.env.example
. -
The app is using Google Maps API. You would need to acquire your own key via Google Cloud Console (the one for the Google Maps JavaScript API) and provide it here:
REACT_APP_MAPS_API=abc
See
.env.example
. -
The app is using Cloudinary for image CDN. You would need to acquire your own account with Cloudinary and provide the given account name as environment variable:
REACT_APP_CLOUDINARY_ACCOUNT=your-account-name
See
.env.example
.
jss setup
and follow the steps in CLIjss deploy app -c
to deploy the app: code and content.
npm run start:connected