Tutorial: https://pusher.com/tutorials/push-notifications-node-service-workers
- Clone this repository and
cd
into it. - Execute
npm install
to download dependencies. - Run
./node_modules/.bin/web-push generate-vapid-keys
to generate public/private VAPID key pair - Open
client/main.js
andvariables.env
and update them with your VAPID credentials - Run
node server.js
to start the Express server - Visit http://localhost:5000 in your browser.
- Node.js and npm