An open API service indexing awesome lists of open source software.

https://github.com/mkalygin/fcm-demo

Web push notifications demo using Firebase Cloud Messaging
https://github.com/mkalygin/fcm-demo

demo fcm-demo firebase firebase-cloud-messaging notifications-demo

Last synced: 3 months ago
JSON representation

Web push notifications demo using Firebase Cloud Messaging

Awesome Lists containing this project

README

          

# fcm-demo
Web push notifications demo using Firebase Cloud Messaging.

### [DEMO](https://fcm-demo-mtbqzgkaoz.now.sh/)

### 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:

```shell
$ yarn install
$ echo FCM_SERVER_KEY=*your Firebase project server key* > .env
$ yarn start
```

3. Navigate to `http://localhost:1337` in your browser