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
- Host: GitHub
- URL: https://github.com/mkalygin/fcm-demo
- Owner: mkalygin
- License: mit
- Created: 2017-02-07T12:48:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T23:19:43.000Z (over 8 years ago)
- Last Synced: 2024-03-15T08:04:43.128Z (over 2 years ago)
- Topics: demo, fcm-demo, firebase, firebase-cloud-messaging, notifications-demo
- Language: JavaScript
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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