https://github.com/leninhasda/go-serve
Quickly spin up a file server
https://github.com/leninhasda/go-serve
fileserver go golang golang-application server
Last synced: 11 months ago
JSON representation
Quickly spin up a file server
- Host: GitHub
- URL: https://github.com/leninhasda/go-serve
- Owner: leninhasda
- Created: 2018-02-05T12:04:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T18:35:00.000Z (almost 6 years ago)
- Last Synced: 2025-06-04T07:53:19.576Z (about 1 year ago)
- Topics: fileserver, go, golang, golang-application, server
- Language: Go
- Size: 32.2 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-serve
Quickly spin up a file server
## Install and usage:
[Download the binary from here](https://github.com/leninhasda/go-serve/releases/download/v0.1/go-serve)
Add executable permission and start using:
```
chmod +x go-serve
./go-serve
```
You can move the binary to `/usr/local/bin` and access globally:
```
sudo mv go-serve /usr/local/bin/
go-serve
```
> you can rename it to anything if you want
By default it will serve current directory port `5000`. But you can modify that:
```
go-serve -port 8080 // will serve current directory on port 8080
// or
go-serve -port 8080 -dir /Users/lenin // will serve home directory of lenin user on port 8080
```