pkozelka / yew-weather

call rest api using rust + yew

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call Rest API With Rust and Yew: USA Weather Service API Open Data YEW Complete Tutorial

YouTube Video

https://youtu.be/dSJULWtd3y0

How to run

trunk serve

Startup logs and Web GUI Result

image

After you clicked on "No data yet" button. Weekly weather forecast will be displayed like followings.

image

Prerequisites

  1. Install rust, cargo and friends. Please watch this video for more details: https://youtu.be/nnuaiW1OhjA https://doc.rust-lang.org/cargo/getting-started/installation.html

  2. Install trunk and target add wasm32-unknown-unknown please watch this video for more details: https://youtu.be/In09Lgqxp6Y

cargo install --locked trunk
rustup target add wasm32-unknown-unknown
  1. Install cargo watch
cargo install cargo-watch

About

call rest api using rust + yew

License:MIT License


Languages

Language:Rust 89.1%Language:CSS 5.6%Language:HTML 5.3%