Skip to content

rwbaskette/simple-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#simple-http#

This creates a basic static http server that can be started from the command line, pointed to a directory and given a port.

##Requires:##

  • npm
    • npm update - make sure to run npm update to get the node-static library.
    • npm link - to put "simple-http" in your path.

##Usage:##

simple-http [-p <port-number>] [path]

All arguments are optional.

Running simple-http without any arguments will start an http server on port 8080 service the current working directory.

To start a server on port 8081 and serves content in ~/Sites:

$> simple-http -p 8081 ~/Sites

About

a simple http server for the cli using node-static module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published