Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created September 10, 2019 03:29
Show Gist options
  • Save artemis15/1c801ce7691d72d79b4ab53e282c7c23 to your computer and use it in GitHub Desktop.
Save artemis15/1c801ce7691d72d79b4ab53e282c7c23 to your computer and use it in GitHub Desktop.
server.js containing updated DB code
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