aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2018-05-16 11:55:28 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2018-05-16 11:55:28 +0000
commit6f2d985fac6397125a84a7b9a712d614e8a1cc50 (patch)
tree1579033e5869816ebc8c4669c5bf232b9aaab784
parentAdd nice helper Makefile (diff)
downloadminiserve-6f2d985fac6397125a84a7b9a712d614e8a1cc50.tar.gz
miniserve-6f2d985fac6397125a84a7b9a712d614e8a1cc50.zip
Add neat README
-rw-r--r--README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.md b/README.md
index 806ceb4..6d4d4d5 100644
--- a/README.md
+++ b/README.md
@@ -8,3 +8,48 @@
[![dependency status](https://deps.rs/repo/github/svenstaro/miniserve/status.svg)](https://deps.rs/repo/github/svenstaro/miniserve)
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/svenstaro/miniserve/blob/master/LICENSE)
+## How to use
+
+### Serve a directory:
+
+ miniserve linux-distro-collection/
+
+### Serve a single file:
+
+ miniserve linux-distro.iso
+
+### Require username/password:
+
+ miniserve --auth joe:123 unreleased-linux-distros/
+
+## Features
+
+- Easy to use
+- Just works: Correct MIME types handling out of the box
+- Single binary drop in with no extra dependencies required
+- Authentication support with username and password
+- Mega fast and highly parallel (thanks to [Rust](https://www.rust-lang.org/) and [Actix](https://actix.rs/))
+
+## How to install
+
+**On Linux**: Download `miniserve-linux` from [the releases page](https://github.com/svenstaro/miniserve/releases) and run
+
+ chmod +x miniserve-linux
+ ./miniserve-linux
+
+**On OSX**: Download `miniserve-osx` from [the releases page](https://github.com/svenstaro/miniserve/releases) and run
+
+ chmod +x miniserve-osx
+ ./miniserve-osx
+
+**On Windows**: Download `miniserve-win.exe` from [the releases page](https://github.com/svenstaro/miniserve/releases) and double click it.
+
+**With Cargo**: If you have a somewhat recent version of Rust and Cargo installed, you can run
+
+ cargo install miniserve
+ miniserve
+
+## Why to use this over alternatives?
+
+- darkhttpd: Not easily available on Windows and it's not as easy as download and go
+- Python built-in webserver: Need to have Python installed and it's low performance and also doesn't do correct MIME type handling in some cases