This repo is the front-end of the Policy Design Lab (https://policydesignlab.ncsa.illinois.edu). README is under development.
- In a terminal,
export APP_ENV=development
to point to development environment - Build the image and pass in the build environment
docker build --no-cache --build-arg APP_ENV="${APP_ENV}" --progress=plain --tag pdl/pdl-frontend .
- Run the container
docker run -p 3000:80 pdl/pdl-frontend:latest
- Go to http://localhost:3000
To upgrade the node version, following the steps below:
- Run
rm -rf node_modules package-lock.json
to remove the old node modules. - If you use
nvm
as package manager, update the.nvmrc
file with the new node version. - Make sure you do
nvm use
to use the new node version. - Run
npm install -g npm@latest
to update npm. - Run
npm install
to update the node modules. - Update the
Dockerfile
with the new node version by changing theFROM
line. - Modify the
test.yaml
in the.github/workflows
folder to use the new node version for lint checking. You don't need to update another file. - Test the application locally to make sure everything works fine.
- Test the application using Docker to make sure everything works fine.