reynish
1/8/2016 - 10:13 AM

Really simple node server

Really simple node server

var http = require('http');

var port = 9000;

function handleRequest(req, res){
  res.end('I\'m alive');
}

var server = http.createServer(handleRequest);

server.listen(port, function(){
  console.log('Server is running on http://reynishpi:'+ port);
});