Code in support of the drupalaton workshop
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
css
js
1-promise.html
2-fetch.html
3-cache.html
4-serviceworker.html
5-background-sync.html
6-push-notifications.html
README.md
index.html
offline.html
serviceworker.js

README.md

PWA workshop

Code in support of the drupalaton workshop.

Requirements

  • Latest chrome
  • A local webserver
  • A local clone of this repository
  • http://localhost pointing to this local clone of the repo

Install

Due to serviceworker requirements, the only way it can be activated on chrome is if the website is served through https or if the domain is exactly localhost.

The webserver need to be configured so that http://localhost serve index.html from this repository. Custom local domain names such as pwa.local or any other that require changing the hosts file will not work. localhost is the only domain that chrome will allow to run serviceworkers without https.

Notes

Service workers are not chrome-only but chrome provide the best tools so far for debugging and developing.