Skip to content

drosi94/forest-restoration-ui

Repository files navigation

powered-by-vercel

Forest Restoration UI

This monorepo contains the code for the forest restoration progressive web application.

About

Find more about the project here and on the landing page

Getting Started

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.

Installation

Install all the packages

  yarn install

Run UI storybook

Run locally the storybook with the UI components. It will run at localhost:6006

  yarn start:ui

Run PWA

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 Tests

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