Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewmorek/vue-service-worker-example
Vue.js PWA Service Worker Example
https://github.com/matthewmorek/vue-service-worker-example
Last synced: about 21 hours ago
JSON representation
Vue.js PWA Service Worker Example
- Host: GitHub
- URL: https://github.com/matthewmorek/vue-service-worker-example
- Owner: matthewmorek
- Created: 2019-08-07T10:14:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T18:57:12.000Z (about 5 years ago)
- Last Synced: 2024-12-07T08:22:17.415Z (about 1 month ago)
- Language: Vue
- Homepage: https://codesandbox.io/s/github/matthewmorek/vue-service-worker-example
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue.js PWA Service Worker Example
Created with CodeSandbox
## Purpose
This repository is a code demo showcasing how one could use Service Workers in a Vue.js PWA.## Prerequisites
- Chromium-based browser with DevTools open, where you can inspect the whole Service Worker lifecycle.## How to use this repo?
- Launch on CodeSandbox and deploy the basic version to Netlify or Zeit;
- Launch the app in another browser window with DevTools open to inspect the PWA capabilities;
- Modify the code to display a different message and save/deploy it to the same endpoint;
- Wait until the previously-launched PWA will display a new message on screen after fetching the update from the remote;You should be able to inspect the whole lifecycle of this simple PWA, as it delivers Over-The-Air (OTA) update to the client without reloading the page.
## Contributing
You're welcome to suggest enhancements and improvements, as well as extending this simple documentation, but the point of this repo is to keep it simple and pure, as it's just a tech/code demo for education purposes.