-
npm i
-
Generate your secrets with:
./node_modules/.bin/web-push generate-vapid-keys
-
Replace the
VAPID_PUBLIC_KEY
andVAPID_PRIVATE_KEY
with the generated keys.
- in public/index.js
VAPID_PUBLIC_KEY
- in src/web-pushes.js
vapidDetails.publicKey
andvapidDetails.privateKey
-
npm start