Software Programming

Kunuk Nykjaer

Local server with npm

leave a comment »


If you need a local server here’s a fast simple way.

  • Install node js http://nodejs.org/
  • Have a index.html file in a folder of your choice
  • In a console type navigate to your folder and type: npm install http-server -g
  • In the console type: http-server (to specify a specific port type: http-server -p 8080)
  • Type in a browser: localhost:8080

You should see your index file in the browser

Advertisements

Written by kunuk Nykjaer

September 5, 2014 at 1:56 pm

Posted in Development

Tagged with , , ,

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

%d bloggers like this: