2 Minute HTTP or Local web server using Node.js

This couldn’t be simpler. Jason Watmore covers the steps in detail here: http://jasonwatmore.com/post/2016/06/22/nodejs-setup-simple-http-server-local-web-server

Make sure you have Node.js installed. Download links are at the bottom of their home page.

  1. Open up your shell of choice – Command Prompt, Terminal, Bash, whatever!
  2. Run “npm install -g http-server” (package documentation here)
  3. “cd” (Change Directory) into your project folder
  4. Run “http-server”
  5. Browse to http://localhost:8080

Screen Shot 2017-06-10 at 1.45.21 pm

Look at that!

 

 

Advertisements

One thought on “2 Minute HTTP or Local web server using Node.js”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s