6 lines
184 B
JavaScript
6 lines
184 B
JavaScript
var mongoose = require('mongoose');
|
|
mongoose.Promise = global.Promise;
|
|
mongoose.connect(process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017/TodoApp');
|
|
|
|
module.exports = { mongoose }
|