Worlds simplest web server.
- Servers static files via a URL
- Navigate to the directory of files you want to serve.
- Type
thru -o
thru :8080
thru -o
You can also easily run multiple thru instances this way. thru will automatically select an open port and start serving the directory.
thru 127.0.0.1
thru 127.0.0.1:3000 -o
Download the latest version of thru by navigating the build directory. Or see if the version you want is in this list:
- thru - v1.0.1 - Mac OS X 32 Bit
- thru - v1.0.1 - Mac OS X 64 Bit
- thru - v1.0.1 - BSD 32 Bit
- thru - v1.0.1 - BSD 64 Bit
- thru - v1.0.1 - BSD ARM
- thru - v1.0.1 - Linux 32 Bit
- thru - v1.0.1 - Linux 64 Bit
- thru - v1.0.1 - Linux Arm
- thru - v1.0.1 - Windows 32 Bit
- thru - v1.0.1 - Windows 64 Bit
Download the file somewhere nice (like /usr/bin), and ensure it is added to your PATH so you can use it in the command line.
If you want to build your own:
- Get the repo
- Make sure you have Go installed
- Do
go build - Put the
thruoutput file in some nice bin folder (like/usr/bin) and add it to yourPATH