zarcode / pwa-example

Progressive Web App Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Progressive web app example

Exploring new and some not so new features of browser

Features

  • service-worker
  • caching
  • push notifications
  • camera usage
  • background-sync
  • firebase functions

Setup and run

  1. Add firebase constants (firebase Project ID and firebase cloud functions plublic url) in /public/src/js/config.js and /functions/config.js
  2. Make in /functions/ make two files: pwagram-fb-key.json and pwagram-vapid-key.json, first containing firebase private key and second one containing vapid key (https://github.com/web-push-libs/web-push)
  3. In /functions/ folder run npm install and than npm run deploy to deploy firebase functions
  4. In root folder run npm install
  5. From same folder run npm run build and after that npm start

About

Progressive Web App Example

License:MIT License


Languages

Language:JavaScript 80.0%Language:HTML 18.5%Language:CSS 1.6%