A demo for progressive web application with features like offline, push notifications, background sync etc,
Please create .env from .env.example
cp .env.example .env
generate keys:
# if not install web-push
npm i -g web push
web-push generate-vapid-keys
$ git clone https://github.com/gokulkrishh/demo-progressive-web-app
$ cd demo-progressive-web-app
$ npm install
$ npm run start
In browser, open http://localhost:3000
-
- App Shell Architecture
-
- Service Worker + Navigation Preload (Origin Trial)
-
- Add to Home Screen, Splash Screen, Browser Mode, Notify user if site is updated etc,
-
- Offline Support
-
- Online/Offline Events
-
- Fetch API
-
- Push Notifications
-
- Background Sync
-
- Web Share API
MIT © Gokulakrishnan
If you found a bug or some improvments, feel free to raise an issue and send a PR!