benjohns1 / simple-pwa

Simple PWA app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple PWA

Simple PWA sample from this tutorial.

Install

npm i

Run

npm start

http://localhost:9090

Local SSL Setup

Necessary to complete all PWA requirements locally

  1. Install openssl
  2. openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -config localhost.cnf
  3. Install cert.pem in Chrome as a Trusted Root Certification Authority

PWA Lighthouse Audit

npm run lighthouse or npm run lighthouse:ssl (after following Local SSL steps above, ports 80 and 443 must be available)

Ctrl-C to halt dev server

View ./lighthouse/report.html for report output.

About

Simple PWA app

License:MIT License


Languages

Language:HTML 72.8%Language:JavaScript 27.2%