http-server: a simple static HTTP server
http-server is a simple, zero-configuration command-line static HTTP server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development and learning.
Installation:
#### Running on-demand:
Using npx you can run the script without installing it first:
npx http-server [path] [options]
#### Globally via npm
npm install --global http-server
This will install http-server globally so that it may be run from the command line anywhere.
#### Globally via Homebrew
brew install http-server
#### As a dependency in your npm package:
npm install http-server
#### Using Docker
Note: a public image is not provided currently, but you can build one yourself with the provided Dockerfile.
- Create an image
docker build -t my-image .- Run a container