https://github.com/peterhellberg/serve
Minimal web server
https://github.com/peterhellberg/serve
go minimal web-server
Last synced: 12 months ago
JSON representation
Minimal web server
- Host: GitHub
- URL: https://github.com/peterhellberg/serve
- Owner: peterhellberg
- Created: 2014-04-13T00:27:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T15:45:45.000Z (over 1 year ago)
- Last Synced: 2025-01-14T07:11:25.343Z (about 1 year ago)
- Topics: go, minimal, web-server
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
serve
=====
A really simple web server for static files.
[](https://github.com/peterhellberg/serve#license-mit)

## Installation
```
go install github.com/peterhellberg/serve@latest
```
## Usage
```bash
$ serve --help
Usage of serve:
-addr="0.0.0.0:9000": Define what TCP address (host:port) to bind to
-root=".": Define the root filesystem path
```
## License (MIT)
Copyright (c) 2014-2024 [Peter Hellberg](https://c7.se/)
> Permission is hereby granted, free of charge, to any person obtaining
> a copy of this software and associated documentation files (the
> "Software"), to deal in the Software without restriction, including
> without limitation the rights to use, copy, modify, merge, publish,
> distribute, sublicense, and/or sell copies of the Software, and to
> permit persons to whom the Software is furnished to do so, subject to
> the following conditions:
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.