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