This repo includes several packages:
studio
- sanity studiobeauty-portal-theme
- Gatsby theme for the portalweb
- Gatsby website, based onbeauty-portal-theme
web
supports configuration files (packages/web/.env.production
,packages/web/.env.development
) where you can specify required env vars.
Currently, we have included all the environment variables for you inside provisioning, in case you want addition functionality like addition of sanity read token just include environment variables as follows:
app_local_sanityToken = "yourTokenValue"
- Algolia Integration is provided by default with a search index created by Platform Liberty Team, if you want to provision search with algolia. in case you want to override these setting change the Algolia Keys located inside .env files. Also, to create new indexes specific to your needs , please uncomment the
gatsby-algolia-plugin
located insidebeauty-portal-theme/gatsby-config.js
. This will enable the gastby to interact with algolia at the time build process.
Also, to make these overridden settings effective at CI/CD , you need to add following github repo secrets:
ALGOLIA_APP_ID=<<value>>
ALGOLIA_SEARCH_API_KEY=<<value>>
- run
yarn
from repo root - that's it :)
- Run gatsby website:
yarn workspace web develop
- Run sanity studio:
yarn workspace studio develop
- Build the web:
yarn workspace web build
- Build the studio:
yarn workspace studio build
- graphql-deploy:
yarn workspace studio graphql-deploy
you can find more about specific commands inside package.json of studio or web folder or located at the root for combined actions.
- Navigate to https://github.com/apps/lighthouse-ci and click on install
- Authorise (Need organisation admin access to add to organisation repo)
- Copy the LHCI_GITHUB_APP_TOKEN token on Authorisation page
- Add this Token to GitHub Secrets.