create http server code example
Example 1: simple http server
npm install --global http-server
Example 2: python local server command
On Ubuntu go to Commands and hit these two commands->
cd folderName
python3 -m http.server 8080
Example 3: how to create a server in node js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write("write html code to display you test")
res.end();
}).listen(8080);
Example 4: open local hosted server
http://localhost/