Skip to content

Alternative to "python -m http.server --bind 0 9000"

License

Notifications You must be signed in to change notification settings

loganstone/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serve

Go Report Card

Alternative to "python -m http.server --bind 0 9000"

Getting started

Prerequisites

Install and run

  • Install serve
$ go install github.com/loganstone/serve@latest
  • Run
$ serve

First contact

Click! http://localhost:9000

Usage of Serve

$ serve -h
usage of serve:
  -d string
    	directory to serve (default ".")
  -p int
    	port to listen on (default 9000)

Running Tests

$ go test -v -count=1 ./...  # no cached

Key Features

  • Serving directory to http.
  • Logging.

To-do Features

  • Add something if need.

About

Alternative to "python -m http.server --bind 0 9000"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages