This is the simplest NodeJS server you can create.
var port = 8080;
var server = "localhost"
var http = require('http').createServer( onServerCreatedHandler );
http.listen( port, server );
function onServerCreatedHandler (req, res) {
res.writeHead( 200, {'Content-Type': 'text/plain'} );
res.end( 'Hello World' );
}
console.log('Server running at http://' + server + ':' + port + '/');
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email