To create our first page in NodeJS we have to create index.js file .then put this code bellow
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(8080);
next we have to run this file in CMD by using node index.js then open this on our web browser . on localhost:8080/
to check our web request
Quick Links
Legal Stuff