No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e
src
.angular-cli.json
.editorconfig
.gitignore
README.md
karma.conf.js
package-lock.json
package.json
protractor.conf.js
tsconfig.json
tslint.json
webpack.sw.conf.js

README.md

PWAs with Angular: Case Study

Prerequisites

You need a test web server, like http-server:

npm i -g http-server

You also need a browser supporting service worker as well as background sync (e. g. Chrome or Firefox).

Build and run

Service Worker are only activated for production builds.

npm install
npm run build
cd dist
http-server -o

Try to close the web server after loading and to disconnect from the internet. Refresh should work anyway. Change some ratings and reconnect. See that the changes are synced.