/liberty-7weeks

Repo created by platform services for sanity theme project

Primary LanguageJavaScript

Liberty portal template

This repo includes several packages:

  1. studio - sanity studio
  2. gatsby-theme-portal - Gatsby theme for the portal
  3. tl-ph - Gatsby website, based on gatsby-theme-portal

Configuration

tl-ph supports configuration files (packages/tl-ph/.env.tl-ph, packages/tl-ph/.env.develop) where you can specify required env vars.

Currently , it supports default search integration with algolia provided by Platform Liberty. To override it , please use following to use your own algolia account:

1. Go to gatsby-theme-portal and uncomment the gatsby-algolia-plugin and provide the Algolia Admin key to start indexing in your agency account.
2. update the Algolia App ID and search key. 
# Installation

1. run `yarn` from repo root
2. put `.env.development` file with proper details from tl-ph environment file.
2. that's it :)

## Commands

1. Run gatsby website: `yarn workspace tl-ph develop`
2. Run sanity studio: `yarn workspace platform-liberty-studio dev`
3. Build Studio: `yarn workspace platform-liberty-studio build`
4. Build Gatsby Website: `yarn workspace tl-ph build`