This is the PWA/mobile view of the Emergency Response project. It allows users to set their status, see the simulation of their assigned missions and complete them.
The app is built using Ionic 4.
To run the app locally, please make sure you have at least Node.js 10+ installed locally.
The following environment variables are required to run the app:
export TOKEN=<mapbox token>
export SERVER_URL=<url of the current emergency console app>
export KEYCLOAK=true
export AUTH_URL=<auth url of keycloak>
export REALM=<keycloak realm>
export CLIENTID=<keycloak client id>
The app is using the same server that is used by the current emergency console app, that's why its url is required here.
Once these env vars are set, you should run:
npm install .
npm run build
npm run start
This will build the app in production mode, which means it will run as a PWA app. Then you can go to http://localhost:8080
to view the app.
For development, you can run npm run build:watch
in one terminal window, this will setup watches for the files and recompile them automatically. Then run npm run start
in another terminal window.
There are a few ways to deploy this app to an OpenShift cluster: