Permalink
Browse files

Create db.js add connection with mongodb

  • Loading branch information...
Nyweron committed Jun 28, 2017
1 parent 6dd33ed commit 000a938b749d1295e6229f9aa52f61d82d973017
Showing with 6 additions and 0 deletions.
  1. +6 −0 db.js
6 db.js
@@ -0,0 +1,6 @@
var mongoose = require('mongoose')
var url = process.env.MONGODB_URI || 'mongodb://localhost/socialLocalhost'
mongoose.connect(url, function() {
console.log('mongodb connected')
})
module.exports = mongoose

0 comments on commit 000a938

Please sign in to comment.