Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1 KB

README.md

File metadata and controls

59 lines (40 loc) · 1 KB

Encompass (Frontend)

Install

Clone this repo:

git clone [email protected]:bayesimpact/encompass.git

Build & Run

docker-compose build frontend
docker-compose run frontend

Build & Run (for Local Development)

Install Dependencies

  1. Install NVM
  2. Install Node 8: nvm install v8.1.3
  3. Install Yarn

Build & Run

yarn
yarn build
yarn start

Then, open localhost:8081 in your browser.

Codegen API typings and Service Areas

When the shape of an API endpoint changes, or when available service areas change:

  1. Update the endpoint's JSON-Schema in shared/api-spec
  2. Regenerate code with yarn codegen

Tests

yarn test

Firebase

To deploy it as a standalone frontend on Firebase:

docker-compose build frontend
docker-compose run --rm frontend bash -c "cp dist/* public/"
cd frontend
firebase deploy
cd -