summaryrefslogtreecommitdiff
path: root/NodeJSServer/server.js
blob: 0c553eb571243776c7b6766a3e4d291a45b0c79f (plain)
1
2
3
4
5
6
7
8
'use strict';
var http = require('http');
var port = process.env.PORT || 1337;

http.createServer(function (req, res) {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Hello World\n');
}).listen(port);