The default development config points REACT_APP_REGIONS_GEOJSON_URL at
data/BC-regions-FNLF-84.geojson, so the app expects the regions GeoJSON at
public/data/BC-regions-FNLF-84.geojson.
One way to do that is a bind mount:
sudo mount --bind /path/to/regions "$(pwd)/public/data"An easier local-only option is a symlink:
ln -sf /path/to/regions/BC-regions-FNLF-84.geojson \
public/data/BC-regions-FNLF-84.geojsonAfter either setup, start the app:
npm startFor building and running a production app, see below.
npm testTests are also automatically run by a GitHub action on each commit.
It can be useful to test the Docker infrastructure locally before deployment on a server. To do so:
-
Pull or build image.
-
To pull:
docker pull pcic/plan2adapt-v2-frontend:<tag>Typically
<tag>is your current branch name. -
To build:
make imageThis automatically builds an image tagged with the current branch name.
-
-
Run container:
make up -
Stop and remove container:
make down