Also known as Hajapäästöt kartalla
The project requires installation of vue-cli:
npm install -g @vue/cli
To install project dependencies with npm, run:
npm install
To use dev GeoServer, add file .env.local
with the following environment variable:
VUE_APP_GEOSERVER_URI=http://your-dev-geoserver-address:port/geoserver/paastotkartalla/
npm run serve-dev
npm run build-prod
Open & run Cypress E2E tests with
npm run cypress
Vue.js & OpenLayers
To update changes that are made in air-pollutant-map to PRTR app, minified build needs to be copied in directory ui/public/air-pollutant-map. Dev-build can be used in local testing. Prod-build needs to be used when changes are published. Build script and copy script are chained for sequential execution. Copy-script requires installation of ncp. To install, run:
npm install -g ncp
npm run build-dev-prtr
npm run build-prod-prtr