Created
June 15, 2020 13:49
-
-
Save teyyihan/1a8a15fb7706e56a6c1359bef4f39c77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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