Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Dec 13, 2023
1 parent 649999b commit 03dad1d
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,31 @@

_Work in progress_

## How to setup
## Installation

Install Trunk
1. [Install Rust and cargo](https://www.rust-lang.org/tools/install)

2. Add WASM32 target
```console
cargo install --locked trunk
rustup target add wasm32-unknown-unknown
```

1) With on-change reloading in the client

Run the server
3. Install Trunk, WASM bundlind tool
```console
cargo run
cargo install --locked trunk
```

Run Trunk development server
4. Make sure to have `libpcap` installed, for Ubuntu:
```console
cd client
trunk serve serve
sudo apt install libpcap-dev
```

Trunk server will proxy WebSocket connections to the main backend.

2) As a single app

Compile client to WASM
5. Install RTPeeker
```console
cd client
trunk build --release
cargo install --locked --git https://github.com/LVala/rtpeeker rtpeeker
```

Run the server
5. Run the app
```console
cd ..
cargo run
rtpeeker --help
```

0 comments on commit 03dad1d

Please sign in to comment.