Created
September 10, 2019 03:29
-
-
Save artemis15/1c801ce7691d72d79b4ab53e282c7c23 to your computer and use it in GitHub Desktop.
server.js containing updated DB code
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
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/mongoose_basics', function (err) { | |
if (err) throw err; | |
console.log('Successfully connected'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment