https://github.com/zabil/serve
Serve a directory's static content
https://github.com/zabil/serve
debugging http-server server static-site
Last synced: over 1 year ago
JSON representation
Serve a directory's static content
- Host: GitHub
- URL: https://github.com/zabil/serve
- Owner: zabil
- License: mit
- Created: 2020-02-14T17:04:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T17:21:32.000Z (over 6 years ago)
- Last Synced: 2025-01-30T14:33:58.840Z (over 1 year ago)
- Topics: debugging, http-server, server, static-site
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`serve` is a command line tool to quickly start a web server to
view static content.
### Usage
Serve the current directory
```
$ serve
Serving at http://localhost:3000
```
Serve specific directory
```
$ serve -d build/site
Serving at http://localhost:3000
```
Serve on a specific port
```
$ serve -p 1234
Serving at http://localhost:1234
```
### Install
```
$ go get github.com/zabil/serve
```