Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yorkie/serve

a tiny server for serving static files and website, no any other runtime required based on mongoose.
https://github.com/yorkie/serve

Last synced: 5 days ago
JSON representation

a tiny server for serving static files and website, no any other runtime required based on mongoose.

Awesome Lists containing this project

README

        

# serve

A tiny(~140kb) server(executable) for serving static files without any runtime like Python/Node.js/Ruby required.

## Why I create this

Sometimes I hope to deliver document or website to someone, which runtime/machine is not the Mac and installed Python,
Node.js and etc., Yea, the file protocol does not address the relative and absolute path issue, because the file
protocol would depend strongly on what the machine's folders structure, hence, I created this tiny cross-platform
executable to run html files in HTTP protocol without any runtime required.

## Usage

> Currently this only supports OSX

```
$ dest/serve -r [dir] -p [port]
```

- `-r` the directory to serve, default directory is the relative path `./public`.
- `-p` specify the port to listen, default is 8000.

## Downloads

All available downloads are here: https://github.com/yorkie/serve/releases

## Build

```
$ make
```

## Author

- [@yorkie](https://github.com/yorkie)

## Thanks

Thanks to [@cesanta](https://github.com/cesanta) to create the awesome open source library [mongoose](https://github.com/cesanta/mongoose).

## License

GPLv2