diff --git a/README.md b/README.md index 296311c..73a6734 100644 --- a/README.md +++ b/README.md @@ -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 ```