Maxim Salnikov
@webmaxru
Products from the future
UI Engineer at ForgeRock
AJAX
Static
Dynamic
RWD
PWA
... attempts to combine features offered by most modern browsers with the benefits of mobile experience
... web apps that use the latest web technologies.
Service workers essentially act as proxy servers that sit between web applications, and the browser and network (when available).
v1.0.0-beta.16 - Experimental service worker by the Angular Mobile team
# Install the Angular Service Worker
$ npm install --save @angular/service-worker
# Enable the SW registration + app shell in Angular CLI
$ ng set apps.0.serviceWorker=true
Backend
Notification
Push Service
SW
App
Backend
Push Service
App
# Install the Workbox CLI
$ npm install workbox-cli --global
# Generate a service worker with some smart defaults
$ workbox generate:sw
$ npm install --save workbox-sw
$ npm install --save-dev workbox-build
$ npm install --save workbox-routing
$ npm install --save workbox-runtime-caching
$ npm install --save workbox-background-sync
$ npm install --save workbox-google-analytics
$ npm install --save workbox-...