Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)