Skip to content

Instantly share code, notes, and snippets.

@n1lesh
Created December 23, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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