Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shresht7/self-serve
A super simple static file server
https://github.com/shresht7/self-serve
go golang server static-file-server
Last synced: about 1 month ago
JSON representation
A super simple static file server
- Host: GitHub
- URL: https://github.com/shresht7/self-serve
- Owner: Shresht7
- License: mit
- Created: 2023-11-30T07:14:42.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T05:14:48.000Z (9 months ago)
- Last Synced: 2024-09-20T06:42:02.060Z (about 2 months ago)
- Topics: go, golang, server, static-file-server
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `self-serve`
A super simple static file server.
## 📦 Installation
```sh
go install github.com/Shresht7/self-serve
```## 📋 Usage
```sh
self-serve --port=5327
```Serve the current directory on `localhost:5327`
> [!NOTE]
> You can type `r` and press `enter` to restart the server.## 📕 Reference
### `--dir`
The directory to serve.
- `Default: .` (The current directory)
### `--port`
The port to use to serve the files.
- `Default: 5327`
### `--version`
Print the version number of the cli application.
- `Default: false`
---
## 📄 License
This project is licensed under the [MIT License](./LICENSE)