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

https://github.com/chyroc/serve

Static file hosting
https://github.com/chyroc/serve

Last synced: 7 months ago
JSON representation

Static file hosting

Awesome Lists containing this project

README

          

# serve

[![codecov](https://codecov.io/gh/chyroc/serve/branch/master/graph/badge.svg?token=Z73T6YFF80)](https://codecov.io/gh/chyroc/serve)
[![go report card](https://goreportcard.com/badge/github.com/chyroc/serve "go report card")](https://goreportcard.com/report/github.com/chyroc/serve)
[![test status](https://github.com/chyroc/serve/actions/workflows/test.yml/badge.svg)](https://github.com/chyroc/serve/actions)
[![Apache-2.0 license](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/github.com/chyroc/serve)
[![Go project version](https://badge.fury.io/go/github.com%2Fchyroc%2Fserve.svg)](https://badge.fury.io/go/github.com%2Fchyroc%2Fserve)

![](./header.png)

## Features

- Access to static files and folders
- Random port selection
- Local logging
- Localhost HTTPS
- Identify the Content-Type of the file

## Install

```shell
brew install chyroc/tap/serve
```

```shell
go install github.com/chyroc/serve@latest
```

## Usage

Simple to use

```shell
serve
```

Deploy a directory

```shell
serve ./some-dic
```

Enable https

```shell
serve --https
```

| | |
| --- | --- |
| | |
| | |