$ python3 -m http.server
but in golang and with better UI.
- No external dependencies.
- Excellent support for terminal browsers.
- JavaScript support is optional.
- Fast and easy to use.
Assuming proper golang setup, simply clone this repo, cd to repo's current directory and run the following command:
$ go install
$ spserve -h
Usage: spserve [options] root_dir
options:
-h Print help message
-port int
Port for the server to listen (default 8080)
$ spserve .
2023/01/23 23:20:07 Serving "/home/safal" in 192.168.1.87:8080
$ spserve -port 8008 ~/dl
2023/01/23 23:20:34 Serving "/home/safal/dl" in 192.168.1.87:8008
GPLv3. See COPYING.