Demo of a web app in Rust with the Yew framework, compiled to WebAssembly. It's just a simple application that fetches quotes from an HTTP API, parses JSON and displays the quotes. The quotes are updated every five seconds. NodeJS and Webpack are used to package the project, and serve as the development environment.
![]() |
![]() |
![]() |
See: https://www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install trunk
rustup target add wasm32-unknown-unknown
npm install
trunk build
npm run serve
Then open: http://localhost:9000/
![]() |