https://github.com/dfang/static-server
using express static middleware as a simple static serve
https://github.com/dfang/static-server
Last synced: 4 months ago
JSON representation
using express static middleware as a simple static serve
- Host: GitHub
- URL: https://github.com/dfang/static-server
- Owner: dfang
- Created: 2013-11-20T12:01:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-21T09:19:53.000Z (over 12 years ago)
- Last Synced: 2025-09-25T20:35:36.888Z (9 months ago)
- Language: JavaScript
- Homepage: https://npmjs.org/package/simple-static-server
- Size: 102 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
simple-static-server
=============
using express static middleware as a simple static server
## Common usage
when you're developing a client side mvc website(angularJS app) or download a project(h5bp, bootstrap) from github, you can extract it and go to its direcotry, and user `serve` or `server` command to start a
static server and open a browser for you. by default, static-server will use 3000 port, if this port is being used, it will try another automaticly....
## Installing globally:
Installation via `npm`. If you don't have `npm` yet:
curl http://npmjs.org/install.sh | sh
Once you have `npm`:
npm install simple-static-server -g
This will install `simple-static-server` globally so that it may be run from the command line. you will have `serve` and `server` command.
## Usage:
serve [path] [options]
`[path]` defaults to `./public` or `./app` if the folder exists, and `./` otherwise.