Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 915 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 915 Bytes

Rust-Webassembly-Yew-Async

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.

Install Rust ++

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

Build project

npm install
trunk build
npm run serve

Then open: http://localhost:9000/