1) Install node
https://nodejs.org/en/
2) cmd > node main.js
==========================================================
var http= require("http");
http.createServer(function(request,response){
response.writeHead(200,{'ContentType':'text/plain'});
response.end('hello world');
}).listen(8081);
console.log("server running at .......... localhost:8081 ");
======================================================
No comments:
Post a Comment