Created
January 5, 2018 17:08
-
-
Save slmanju/ffe217b7d334e074ba8546bdc041a876 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/nodeems', function (err) { | |
| if (err) throw err; | |
| console.log('Successfully connected to the database'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment