https://github.com/bazuker/fileserver
Simple file server that shares access to a directory on a specified port
https://github.com/bazuker/fileserver
filehoster fileserver
Last synced: 5 months ago
JSON representation
Simple file server that shares access to a directory on a specified port
- Host: GitHub
- URL: https://github.com/bazuker/fileserver
- Owner: bazuker
- License: mit
- Created: 2016-07-03T20:12:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-28T01:07:12.000Z (over 2 years ago)
- Last Synced: 2023-10-28T02:28:17.623Z (over 2 years ago)
- Topics: filehoster, fileserver
- Language: Go
- Homepage:
- Size: 2.18 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/bazuker/fileserver)
# Go fileserver
Simple file server that shares access to a directory over HTTP using a selected port.
By default, the current working directory is hosted on port `8080` if no flags were specified.
## Installation
Build from the source
```bash
go install github.com/bazuker/fileserver@latest
```
Or check out the [pre-built binaries](https://github.com/bazuker/fileserver/releases)
## CLI Usage
```bash
fileserver -port=5555 -dir="/users/username/documents/public"
```
This command will host the directory `/users/username/documents/public` on the port 5555.
Now, you should be able to access it via a web browser at http://localhost:5555/