https://github.com/hmarr/serve
🗂 Serve files from the current directory over HTTP
https://github.com/hmarr/serve
Last synced: about 1 year ago
JSON representation
🗂 Serve files from the current directory over HTTP
- Host: GitHub
- URL: https://github.com/hmarr/serve
- Owner: hmarr
- License: mit
- Created: 2019-03-05T17:00:46.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T16:00:00.000Z (over 3 years ago)
- Last Synced: 2025-02-06T12:33:29.702Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serve
Serve files from the current directory over HTTP.
## Install
```
go install github.com/hmarr/serve
```
## Use
```
$ serve -h
Usage: ./serve [opts] [directory]
-cors-allow string
origins to permit via cors
-open
open in web browser
-port int
the port of http file server (default 8000)
-public
listen on all interfaces
$ serve
🚀 Listening on http://127.0.0.1:8000/
2019/03/05 11:59:44 GET /README
```