Skip to content

Commit

Permalink
Update air-pollutant-map info to Readme-files
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkosillanp committed Aug 15, 2023
1 parent 5a4767b commit 4fe9a2f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,9 @@ API should now be accessible at [localhost:8000](http://localhost:8000/).
```
$ python -m pytest tests/
```

## Getting Started with the Air-pollutant-map

Changes for the air-pollutant-map (tab Hajapäästöt in the application) are made in the directory [air-pollutant-map](air-pollutant-map). Air-pollutant-map is originally implemented with Vue, therefore it's code is maintained separately from UI. Build of air-pollutant-map is placed inside the public-directory of UI so that the build runs on the same server as the main app. Running air-pollutant-map is embedded in to the UI with an iframe.

Whenever new changes are made to the air-pollutant-map, new build needs to be made and copied in [ui/public/air-pollutant-map](ui/public/air-pollutant-map). More information about updating the changes in the other [README.md](air-pollutant-map/README.md)
14 changes: 14 additions & 0 deletions air-pollutant-map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ Open & run Cypress E2E tests with
Vue.js & OpenLayers

See [Configuration Reference](https://cli.vuejs.org/config/).

## Update air-pollutant-map changes to PRTR ui
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](../ui/public/air-pollutant-map/). Build script and copy script are chained for sequential execution. Copy-script requires installation of ncp. To install, run:
```
npm install -g ncp
```

### Compiles and minifies for development and copies minified file to PRTR ui

`npm run build-dev-prtr`

### Compiles and minifies for production and copies minified file to PRTR ui

`npm run build-prod-prtr`

0 comments on commit 4fe9a2f

Please sign in to comment.