Skip to content

Instantly share code, notes, and snippets.

@r01010010
Last active August 29, 2015 14:10
Show Gist options
  • Save r01010010/8b0d8f15a6df101724f7 to your computer and use it in GitHub Desktop.
Save r01010010/8b0d8f15a6df101724f7 to your computer and use it in GitHub Desktop.
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