Simple HTTP server for serving single page apps locally (not to be used in production.)
Meant to be an alternative for python3 -m http.server
, where instead of
returning 404 it returns index.html
for files that do not exist, so that SPAs
which use history API work.
$ spa -h
Usage of spa:
-addr string
address to listen on (default ":8000")
-dir string
dir to serve (default ".")
brew tap irth/irth
brew install irth/irth/spa
Download binary from releases, chmod +x
, put it in path.
Clone repo, make
.