Clone this repo:
git clone [email protected]:bayesimpact/encompass.git
docker-compose build frontend
docker-compose run frontend
yarn
yarn build
yarn start
Then, open localhost:8081 in your browser.
When the shape of an API endpoint changes, or when available service areas change:
- Update the endpoint's JSON-Schema in shared/api-spec
- Regenerate code with
yarn codegen
yarn test
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 -