Skip to content

Instantly share code, notes, and snippets.

@abernier
Created May 2, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abernier/178d8141239131ccd97669d3a7d5cc2e to your computer and use it in GitHub Desktop.
Save abernier/178d8141239131ccd97669d3a7d5cc2e to your computer and use it in GitHub Desktop.
  1. Cloner ma branch abernier :
git checkout -b abernier --track origin/develop
git pull origin abernier
  1. définir le fichier .env a partir du template .env-dist
cp .env-dist .env

puis modifier les valeurs :

  • SITECORE_API_HOST
  • REACT_APP_DEFAULT_JSS_APP_NAME
  • REACT_APP_DEFAULT_SITECORE_API_KEY
  1. Builder l'appli (notamment build/server.bundle.js utilisé par le node-headless-ssr-proxy):
make
  1. Enfin lancer le serveur proxy:
node node-headless-ssr-proxy
  1. Puis se rendre à http://localhost:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment