Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.45 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.45 KB

ol-ng-dwd-Radar

Angular OpenLayers App which shows Radar data from DWD PWA

demo

Getting Started

git clone https://github.com/boeckMt/ol-ng-dwd-Radar.git
cd ol-ng-dwd-Radar
npm i
npm start

This project was generated with Angular CLI version 1.6.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the docs/ directory. Use the -prod flag for a production build.

Add to GitHub Pages

set "start_url": "/ol-ng-dwd-Radar/index.html" in manifest.json Run npm run buildGP https://github.com/angular/angular-cli/wiki/stories-github-pages angular/angular-cli#9395

Update GitHub Pages

  • create PR on master -> .github/workflows/node-gh-pages.yml

PWA

  • check for new version of app(service-worker) //swUpdate.available.subscribe
  • cache files of app and requested osm tiles with ngsw-config.json //with globs patern

Update

  • ng update
  • ng update @angular/cli --from x --to y --migrate-only
  • npm outdated -l