Skip to content

atony2099/filesrv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest SemVer) Go Build & Test Maintainability Test Coverage

filesrv

filesrv is a simple tool to serve a directory over HTTP and automatically refresh web pages in the browser when files change. It can be useful for web development or any situation where you want to quickly share a static website with others.

Installation

You can install filesrv using go get:

go install github.com/atony2099/filesrv@latest

Alternatively, you can download a pre-built binary from the releases page and add it to your PATH.

Usage

To start the server, run:

filesrv -port [PORT] -dir [DIRECTORY]

where [PORT] is the port number to use (default is 8080) and [DIRECTORY] is the directory to serve (default is the current directory).

Once the server is running, open your web browser and navigate to http://localhost:[PORT], where [PORT] is the port number you specified. You should see a file browser for the directory you specified.

Whenever a file in the directory is modified, the browser will automatically refresh to show the updated content.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages