Skip to content

jkulton/platter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Platter

Platter

Go Report Card

Create a file server from a directory, fast.

Platter is a simple wrapper around the Go standard library net/http FileServer.

Install

Before installing please have Go installed and $GOPATH/bin in your $PATH. (More info here)

go get github.com/jkulton/platter/cmd/platter

Usage

platter

Once you've installed, just run platter to serve the files in your current directory over HTTP.

Options/Flags

(all options are as their name implies optional)

Flag Default Description
-p 8080 8000 Port to bind to
-d ./files . Local directory of files to serve
-a 192.168.1.2 0.0.0.0 Address to serve on
-auth username:password No default user:pass formatted authorization (for HTTP basic auth)

About

Create a file server with a single command

Topics

Resources

License

Stars

Watchers

Forks

Languages