Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 468 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 468 Bytes

fcm-demo

Web push notifications demo using Firebase Cloud Messaging.

How to run

  1. Setup config for your Firebase project in public/app.js and public/firebase-messaging-sw.js.
  2. Install dependencies and setup environment variables:
$ yarn install
$ echo FCM_SERVER_KEY=*your Firebase project server key* > .env
$ yarn start
  1. Navigate to http://localhost:1337 in your browser