Skip to content

security-union/yew-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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