Skip to content

A simple static file server using express.js for node.js. Good when you need a quick file server.

Notifications You must be signed in to change notification settings

Intellogo/recommendationsWidget-express-static-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Simple Express Static File Server

A very simple static file server. For development use only.

##Installation

Using as a local module (recommended)

$ npm install spadin/simple-express-static-server
$ ./node_modules/.bin/simple-server my/public/dir

Using the server as a global module

$ sudo npm install -g spadin/simple-express-static-server
$ simple-server my/public/dir

Contribute

Install dependencies (first time only):

$ npm install

How to start:

$ node server

Open http://localhost:4567

If you need a different port:

$ PORT=9999 node server

Open http://localhost:9999

If you need a different hostname:

$ HOSTNAME=192.168.0.1 node server

Open http://192.168.0.1:4567

Copyright and license

Code and documentation copyright 2013-2016 Sandro Padin. Code released under the MIT license. Docs released under Creative Commons.

About

A simple static file server using express.js for node.js. Good when you need a quick file server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 92.4%
  • JavaScript 7.6%