This monorepo contains the code for the forest restoration progressive web application.
Find more about the project here and on the landing page
You need to install node, yarn & lerna
npm install -g yarn lerna
Optionally, you can install doppler (Enviromental Secret Management, Installation Guide) or you can create a .env.local file in the monorepo root you want to work. Please send an email in [email protected] to provide you with the enviromental secrets that you need for the local enviroment.
Install all the packages
yarn install
Run locally the storybook with the UI components. It will run at localhost:6006
yarn start:ui
Run locally the PWA. It will run at localhost:3000
If you have install & configure the doppler CLI
yarn start:pwa
If you have .env.local file in packages/pwa root folder
yarn start:pwa:env
If you want to run in HTTPS mode check the Wiki Page
Run all the tests
yarn test
Run PWA tests
yarn workspace @forest-restoration/pwa test
Run UI snapshot tests
yarn workspace @forest-restoration/ui test