http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(1337); As simple it is , you are seeing .
How to Create Server in Node js
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode…Read More
Hello World in Node js
Sample app in Node.js
Hello World App
var http = require('http');
http.createServer(function (req, res) {
&nb…Read More
0 comments:
Post a Comment