Web push notifications demo using Firebase Cloud Messaging.
- Setup
config
for your Firebase project inpublic/app.js
andpublic/firebase-messaging-sw.js
. - Install dependencies and setup environment variables:
$ yarn install
$ echo FCM_SERVER_KEY=*your Firebase project server key* > .env
$ yarn start
- Navigate to
http://localhost:1337
in your browser