Today it’s really easy to setup
Node.js
and install
npm
apps on Windows systems. Here’s a guide how to setup a HTTP server.
- First you must install
NodeJS
.
- Open the
Node.js command prompt
to run following commands.
- Run this command to install a HTTP server:
npm install http-server -g
npm install http-server -g
 |
npm install http-server windows screenshot |
Install mongodb library for Node
npm install mongodb
- And start the HTTP server:
http-server /path/to/docroot
with a path to the folder you want to share. Your folder must have some files before it works.
cd C:UsersusernameAppDataRoamingnpmnode_moduleshttp-server
 |
http-server root acces/starting screenshot |
C:UsersusernameAppDataRoamingnpmnode_moduleshttp-server start
- Now just open
http://localhost:8080/
in your browser.
Affiliate Disclaimer : As an Amazon Associate I earn from qualifying purchases.