Skip to content

Instantly share code, notes, and snippets.

@n1lesh
Created December 23, 2017 09:04
Show Gist options
  • Save n1lesh/ac4613f15577cbe7b27397adb354cbf3 to your computer and use it in GitHub Desktop.
Save n1lesh/ac4613f15577cbe7b27397adb354cbf3 to your computer and use it in GitHub Desktop.
Firebase Cloud Messaging with Node.js - FCM 1
'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