Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yorkie/serve
- Owner: yorkie
- Created: 2015-10-30T14:19:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T11:57:07.000Z (about 5 years ago)
- Last Synced: 2024-11-01T09:33:56.968Z (12 days ago)
- Language: C
- Homepage:
- Size: 151 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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