var express = require("express"),
	mongoose = require("mongoose"),
	router = require(process.cwd() + "/routes/router.js");

var app = express();
router.createRoutes(app);

mongoose.connect(process.env.MONGOLAB_URI || "mongodb://localhost/kanban:27017");
var db = mongoose.connection;
db.on("error", function(err) {
	console.log("mongoose didn't connect: " + err);
});
db.once("open", function() {
	console.log("mongoose connected");
});

app.listen(process.env.PORT || 8000);
console.log("server listening");

process.on("uncaughtException", function(err) {
	console.log(err);
});

@@ -364,77 +364,8 @@
 %0A%7D);
-%0Adb.once(%22open%22, function() %7B%0A%09console.log(%22mongoose connected%22);%0A%7D);
 %0A%0Aap
@@ -403,41 +403,8 @@
 00);
-%0Aconsole.log(%22server listening%22);
 %0A%0Apr

add POST/DELETE api/category