Last active
August 29, 2015 14:10
-
-
Save r01010010/8b0d8f15a6df101724f7 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
var mongodb = require('mongodb'); | |
// Connection URL | |
var url = 'mongodb://localhost:27017/scjs'; | |
// Use connect method to connect to the Server | |
mongodb.MongoClient.connect(url, function(err, db) { | |
if(err) { throw err } else { | |
console.log('yahooo'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment