Friday, March 2, 2018

NodeJS Simple HTTP Server (Local Web Server)

  1. Install NodeJS
  2. Install http-server package
    • e.g. sudo npm install -g http-server
  3. Go to your target http root folder
    • e.g cd\web\root
  4. Type command to run http-server
    • e.g. http-server
  5. To stop the server type:
    • CTRL-C

1 comment:

  1. BlueHost is definitely one of the best hosting provider with plans for any hosting needs.