alxhub / io17

106 stars 21 forks source link

Angular Progressive Web App Example, IO 2017

This is the Hero Store, an example application for Google IO. It's a simple app, with no actual functionality and two routes, but is useful for demonstrating techniques for service worker caching, application shells, and push notifications.

Setup

# Install dependencies
$ yarn
# (or npm install)

# Run the server
$ ./run.sh

The ng-pwa-tools

This app depends on ng-pwa-tools, which automate some of the more configuration-heavy tasks of progressive enhancement, including:

In Windows, you must run the above commands in Bash prefixed by ./node_modules/.bin/, e.g. ./node_modules/.bin/ngu-sw-manifest

Branches

See the talk for more details