var app = require('express')();

app.get('/', function(req, res) {
  res.send('Hello World!');
});

var server = app.listen(3000, function() {
  console.log('Listening on http://localhost:3000');
});

@@ -25,16 +25,786 @@
 ss')();%0A
+var db = require('mongoose');%0Adb.connect('mongodb://localhost/caedence_net_development');%0A%0Avar Note = db.model('Note', %7B%0A  title: String,%0A  body_html: String,%0A  body_text: String,%0A  user_id: Number,%0A  created_at: %7B type: Date, default: Date.now %7D,%0A  updated_at: %7B type: Date, default: Date.now %7D%0A%7D);%0A%0A// create some records with mongo cli like this:%0A// $ mongod%0A// %3E use caedence_net_development%0A// %3E db.notes.insert(%7B title: %22Hello%22, body_html: %22%3Cp%3EWorld%3C/p%3E%22, body_text: %22World%22 %7D)%0A// WriteResult(%7B %22nInserted%22 : 1 %7D)%0A// %3E db.notes.find()%0A// %7B %22_id%22 : ObjectId(%22562473c0802fa33ca991217b%22), %22title%22 : %22Hello%22, %22body_html%22 : %22%3Cp%3EWorld%3C/p%3E%22, %22body_text%22 : %22World%22 %7D%0Aapp.get('/notes/', function(req, res) %7B%0A  Note.find(function(err, notes) %7B%0A    res.json(notes);%0A  %7D);%0A%7D);
 %0Aapp.get

Create Mongoose model for Note, and list notes.