GithubHelp home page GithubHelp logo

kpn-pwa's Introduction

kpn-pwa

Demo code on the KPN PWA-workshop

Usage

  • See the steps in the presentation. The code is built in the following order:
  1. Create index.html and add first content.
  2. Create css/style.css and add first content, just to make it look nice.
    1. Set some fonts.
    2. Do browser resets.
    3. Layout the navbar and main menu.
  3. Add styling for the cards. Expand style.css with the appropriate styles. Again, no functionality, just layout.
  4. Add JavaScript data (in real life this would come from a database).
  5. Add functionality to add the data to the DOM.
  6. Add images. We used a directory images with photos of coffees.
  7. Create a PWA by adding a manifest.json file.
  8. Update index.html with a link to the manifest file.
  9. Add a Service Worker (sw) and let it add static items to the cache upon installation.
  10. Expand the SW to get the items from the cache when it is loaded. This way our PWA can work offline!
  11. Register the Service Worker in app.js

Credits:

Questions? email me at [email protected].

Cheers - Peter.

kpn-pwa's People

Contributors

peterkassenaar avatar

Watchers

 avatar  avatar

Forkers

kunasrinivas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.