express using mongodb to add something to a user code example
Example: insert a data into mongo using express
var mongoose = require("mongoose");mongoose.Promise = global.Promise;mongoose.connect("mongodb://localhost:27017/node-demo");
var mongoose = require("mongoose");mongoose.Promise = global.Promise;mongoose.connect("mongodb://localhost:27017/node-demo");