Created
December 23, 2017 09:04
-
-
Save n1lesh/ac4613f15577cbe7b27397adb354cbf3 to your computer and use it in GitHub Desktop.
Firebase Cloud Messaging with Node.js - FCM 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const app = require('express')(), | |
request = require('request'), | |
mongo = require('mongodb'), | |
bodyParser = require('body-parser') | |
app.use(bodyParser.json()) | |
app.use(bodyParser.urlencoded({ | |
extended: false | |
})) | |
const MongoClient = mongo.MongoClient | |
const url = 'mongodb://localhost:27017/myDatabase' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment