Skip to content
Snippets Groups Projects
Commit 1b497f3f authored by Thrasyvoulos Karydis's avatar Thrasyvoulos Karydis
Browse files

Add new file

parent cb05b006
No related branches found
No related tags found
No related merge requests found
var http = require("http");
http.createServer(function (request, response) {
// Send the HTTP header
// HTTP Status: 200 : OK
// Content Type: text/plain
response.writeHead(200, {'Content-Type': 'text/plain'});
// Send the response body as "Hello World"
response.end('Hello World\n');
}).listen(8081);
// Console will print the message
console.log('Server running at http://127.0.0.1:8081/');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment