Miniserve is a simple utility that serves files and directories over http.
brew install miniserve
cargo binstall miniserve
Serve a directory:
$ miniserve path/to/directory
Serving $PWD
on the current port with an index file.
$ miniserve . --port=3000 --index index.html
Serve a single file:
$ miniserve path/to/file
Serve a directory using HTTP basic authentication:
$ miniserve --auth username:password path/to/directory