A tiny CLI tool to start a local file server.

Konstantinos Lypitkas 2f96c1f878 Add license and update README 5 years ago
.gitignore 10b3774e55 Add the cli tool 5 years ago
LICENSE 2f96c1f878 Add license and update README 5 years ago
README.md 2f96c1f878 Add license and update README 5 years ago
go.mod 10b3774e55 Add the cli tool 5 years ago
main.go 10b3774e55 Add the cli tool 5 years ago

README.md

FS Go

FS Go is a tiny CLI tool in order to spawn a local file server.

REQUIREMENTS

  • Go >= 1.13

BUILD

In order to build the executable run the following command:

$ go build

START THE SERVER

Starting the server is easy:

$ ./fs-go -port 8080 -dir .

Only two parameters are needed:

  • dir: The directory that will be served. (default: .)
  • port: The port that the server will listen to. (default: 8080)

INSTALL GLOBALLY

If you only want to use this CLI tool as a binary then you can do that easily:

$ go install

Now you can use:

$ fs-go

From anywhere in your system.