We're using the finishing point from Workshop 3 as today's starting point. Like before, we have milestones to jump to if you get behind or need to copy/paste something.
We'll start by going over the application from the end of Workshop 3 to make sure everyone is familiar. If you did not attend Workshop 3, you should still be okay.
By the end of this session, our application will be able to:
npm install --save mongodb
var Db = mongo.Db;
var Server = mongo.Server;
var db = new Db('codeweekend',
new Server('localhost', '27017', {auto_reconnect: true}, {}),
{safe: true}
);
db.open(function(){});
db.collection('test').find().toArray(...);