Skip to content

Basic sw-toolbox example with HAPI backend, to be used as template

Notifications You must be signed in to change notification settings

bhumin3i/sw-toolbox-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw-toolbox example

A simple Google sw-toolbox example site with HAPI backend. Has five pages and a very basic sw-toolbox setup. It meant as a boilerplate on which I can build experiments.

$ git clone https://github.com/glennjones/sw-toolbox-example
$ cd sw-toolbox-example
$ npm install
$ node app.js

Needs Node.js v4+ installed to run HAPI

View site at http://localhost:3020/

The main file to look at

  • /public/javascript/site.js this has the service worker registration
  • /public/javascript/serviceworker.js this has the config for sw-toolbox setup

About

Basic sw-toolbox example with HAPI backend, to be used as template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.5%
  • HTML 34.1%
  • CSS 1.4%