This is example of Web Push Notification Using Pushjs.org with Nodejs,HTML,express.js. I have also put click event on notification that will change text color randomly.
clone or download from
you just need to add push.js and serviceWorker.js in your public folder and then include it in your HTML file.
You need to have installed Node.js, NPM in your System
npm install
nodemon server.js
Code is Running on
you have to allow notification then you can click on button "Click me for notification" and you will get notification when you click on notification text below that will change color randomly as i set onClick event on Notification
🌟 🎉