text: var http = require('http');
  var message = require('./message/message');
  var BlogRoute = require('./route/BlogRoute');
  
  var port = process.env.port || 1337;
  
  var app = http.createServer(function requestListener(req, res) {
    var blogRoute = new BlogRoute({ message: message, req: req, res: res });
  
    if (blogRoute.isValidRoute()) {
      blogRoute.route();
      return;
    }
  
    res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8'});
    res.end('A simple micro blog website with no frills nor nonsense.');
  });
  
  app.listen(port);
  
  console.log('Listening on http://localhost:' + port);
  