Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

uniformdev/sugcon-jss

Repository files navigation

SUGCON demo site

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.

Getting started (disconnected)

  1. npm install
  2. npm run dev or jss dev.

Environment variables

  1. 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.

  2. 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.

  3. 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.

Deployment to Sitecore

  1. jss setup and follow the steps in CLI
  2. jss deploy app -c to deploy the app: code and content.

Running connected

  1. npm run start:connected