Skip to content

Instantly share code, notes, and snippets.

@teyyihan
Created June 15, 2020 13:49
Show Gist options
  • Save teyyihan/1a8a15fb7706e56a6c1359bef4f39c77 to your computer and use it in GitHub Desktop.
Save teyyihan/1a8a15fb7706e56a6c1359bef4f39c77 to your computer and use it in GitHub Desktop.
mongoose.connect('mongodb://localhost:27017/realtimeProject',{useNewUrlParser:true},
function(err){
if(err){
throw err
}
console.log('Database connected')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment