ZeroTierOne/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/httpserver.js
2015-11-23 05:15:19 -08:00

8 lines
251 B
JavaScript

var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Welcome to the machine!\n");
});
server.listen(8080);
console.log("Server running!");