Answers for "create http server"

4

python local server command

On Ubuntu go to Commands and hit these two commands->
cd folderName
python3 -m http.server 8080
Posted by: Guest on April-29-2020
3

simple http server

npm install --global http-server
Posted by: Guest on May-03-2020
5

how to create a server in node js

// code by VARSHITH REDDY SATTI
// to create a server in node.js you should.
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);
// save this as httpServer.js
// run this by typing node httpServer.js in the command line
// to acess your server got to http://localhost:8080
Posted by: Guest on December-28-2019
0

open local hosted server

// Open a brower and enter the following into the URL: 

http://localhost/
Posted by: Guest on April-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language