Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snwfdhmp/simplehttp
Simple and lightweight http server for local files
https://github.com/snwfdhmp/simplehttp
cli cli-utilities http http-server
Last synced: 2 months ago
JSON representation
Simple and lightweight http server for local files
- Host: GitHub
- URL: https://github.com/snwfdhmp/simplehttp
- Owner: snwfdhmp
- Created: 2019-02-20T17:23:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T03:28:00.000Z (over 1 year ago)
- Last Synced: 2024-06-19T02:10:54.685Z (4 months ago)
- Topics: cli, cli-utilities, http, http-server
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 61
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cli-apps - simplehttp - Easily serve a local directory over HTTP. (Development / HTTP Server)
- jimsghstars - snwfdhmp/simplehttp - Simple and lightweight http server for local files (Go)
- fucking-awesome-cli-apps - simplehttp - Easily serve a local directory over HTTP. (Development / HTTP Server)
README
# Quickly serve a local directory over http
## Getting started
Install with
```shell
go install github.com/snwfdhmp/simplehttp@latest
```## Usage
With no arguments, simplehttp starts serving files under ./ over port 8080.
```shell
$ simplehttp
INFO[0000] Serving ./ over 0.0.0.0:8080... Stop with ^C
```With `-d` arg, specify the directory to be served.
```shell
$ simplehttp -d ./templates/
INFO[0000] Serving ./templates/ over 0.0.0.0:8080... Stop with ^C
```With `-p` arg, specify the port to serve on.
```shell
$ simplehttp -p 31415
INFO[0000] Serving ./ over 0.0.0.0:31415... Stop with ^C
```## Feedback
Feel free to open an issue for any feedback or suggestion.
I fix bugs quickly.
## Contributions
PR are accepted as soon as they follow Golang common standards.
For more information: https://golang.org/doc/effective_go.html