A FCM web push demo
# install dependencies
npm install
# after config
# run server on 127.0.0.1:5000
npm start
const vapidKeys = require('web-push').generateVAPIDKeys();
vapidKeys.publicKey;
vapidKeys.privateKey;
// After using vapid the GCM_KEY is not important
// if you don't want to use that just comment the webpush.setGCMAPIKey(String(GCM_KEY));
// in webpush.js line 14
exports.GCM_KEY = "<YOUR GCM_KEY HERE>"
exports.vapidPublicKey = "<YOUR VAPID PUBLICKEY HERE>"
exports.vapidPrivateKey = "<YOUR VAPID PRIVATEKEY HERE>"
var vapidPublicKey = "<YOUR VAPID PUBLICKEY HERE>";
"gcm_sender_id": "<YOUR_SENDER_ID>"
node sender.js test_title test_body