Some years ago I dreamed about running JavaScript applications on Windows systems as easy as it was on Linux. It seems the future is here.
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. No programming skills required! (Basically it’s the same process for any OS!)
- First you must install NodeJS.
- Open the command prompt to run following commands.
- Windows 7: Open Start and write
cmdinto the search and press enter. - Windows XP: Open Start and select Run and write
cmdand press enter.
- Windows 7: Open Start and write
- Run this command to install a HTTP server:
npm install http-server -g - And start the HTTP server:
http-server /path/to/docrootwith a path to the folder you want to share. Your folder must have some files before it works. - Now just open http://localhost:8080/ in your browser.
I wonder if there is a GUI for NodeJS/NPM yet. However I don’t think running some simple commands is so hard thing to do.
NPM isn’t just for installing HTTP servers. There’s a lot of apps and libraries available and ready to be installed with APT-like interface. You can even publish your own software there!
