1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[Read Me](README.md) > Install
```bash
cargo install rust-web-server
```
This installs the `rws` binary to `~/.cargo/bin/`. Make sure that directory is in your `$PATH` (the Rust installer adds it automatically).
To update to a newer version:
```bash
cargo install rust-web-server --force
```
```bash
git clone https://github.com/bohdaq/rust-web-server.git
cd rust-web-server
cargo build --release
sudo cp target/release/rws /usr/local/bin/ # macOS
sudo cp target/release/rws /usr/bin/ # Linux
```
See [DEVELOPER](DEVELOPER.md) for full build instructions.
```bash
rws
```
You should see output similar to:
Open `http://127.0.0.1:7878` in a browser. Press `Ctrl+C` to stop.