Answers for "run local server in node"

PHP
17

run php server

cd path/to/your/app
php -S localhost:8000
Posted by: Guest on May-14-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

how to run node js with proxy

$ npm config delete http-proxy
$ npm config delete https-proxy
Posted by: Guest on April-24-2020

Browse Popular Code Answers by Language