- Step 1: Create server.js flie with content bellow:
var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);- Step 2:
node server.js- Step 3: Open in your browser: http://localhost:8888/