var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\nApp (au9voronoi) is running on Node.JS ' + process.version);
}).listen(16221);

@@ -1,225 +1,1564 @@
-var http = require('http');%0Ahttp.createServer(function (req, res) %7B%0A  res.writeHead(200, %7B'Content-Type': 'text/plain'%7D);%0A
+// --------------------- IMPORTS ----------------------------------%0Avar express = require('express')%0A  , voronoi = require('./voronoi.js').Voronoi%0A  , routes = require('./routes');%0A%0Avar app = module.exports = express.createServer();%0A%0A// ------------------------- CONFIGURATION ------------------------%0A%0Aapp.configure(function()%7B%0A  app.set('views', __dirname + '/views');%0A  app.set('view engine', 'jade');%0A  app.use(express.bodyParser());%0A  app.use(express.methodOverride());%0A  app.use(app.router);%0A  app.use(express.static(__dirname + '/public'));%0A%7D);%0A%0Aapp.configure('development', function()%7B%0A  app.use(express.errorHandler(%7B dumpExceptions: true, showStack: true %7D));%0A%7D);%0A%0Aapp.configure('production', function()%7B%0A  app.use(express.errorHandler());%0A%7D);%0A%0A// ----------------------- ROUTER AND RENDER ----------------------%0Avar render_context = %7B%0A    title: 'au9voronoi',%0A    topbar_items: %7B%0A        'Home': '/', %0A        'About': '/about', %0A        'Doc': '/doc', %0A        'Contact': '/contact'%7D,%0A    layout: false%0A%7D;%0Aapp.get('/demo', function(req,res)%7B%0A    res.render('demo', render_context);%0A%7D);%0Aapp.get('/', function(req,res)%7B%0A  
   res.
+r
 end
-('Hello World%5CnApp (au9voronoi) is running on Node.JS ' + process.version);%0A%7D).listen(16221
+er('index', render_context);%0A%7D);%0Aapp.post('/calculate', function(req,res)%7B%0A    var result = voronoi.main(req.body.sites);%0A    res.json(result);%0A%7D);%0A%0A// --------------------- API FOR CALCULATION ----------------------%0A%0A// -------------------------- LAUNCH SERVER -----------------------%0Aapp.listen(3000, function()%7B%0A  console.log(%22Express server listening on port %25d in %25s mode%22, app.address().port, app.settings.env);%0A%7D
 );%0A

edit server to test Express on nodester