var http = require('http'); var server = http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('Hello World!'); res.end();});server.listen(8080);
var http = require('http');
var server = http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.write('Hello World!');
res.end();
});
server.listen(8080);
By Julián Duque
Node.js in production using Nodejitsu
Developer and Educator