Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.12 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.12 KB

Navigator Frontend

This repository contains the code necessary to build the navigator-frontend container.

These containers are pushed into AWS ECR (see ci.yml) and are used as part of the CPR application deployment. (see https://github.com/climatepolicyradar/navigator-infra)

TL;DR

Run make or make THEME=cclw

Requirements

  • make
  • Docker
  • Trunk.io (for code quality)
  • Node

If you do not already have trunk.io installed on your machine, run make install_trunk to install.

Getting started

Local development can be done via Docker or manual installation.

Environment

See the .env.example file for details of configuration environment variables.

Testing

This project is tested with BrowserStack.

Running the project

If you have not yet run an install for the repo

npm install

Create a .env file

cp .env.example .env

Run project locally

npm run dev

or

yarn dev

Set the 'theme' to run the appropriate environment/app i.e. to run the cclw app locally update the .env file to 'THEME=cclw' or run the following:

THEME=cclw npm run dev