Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/security-union/yew-weather

call rest api using rust + yew
https://github.com/security-union/yew-weather

rust-lang rustlang rustwasm yew

Last synced: about 7 hours ago
JSON representation

call rest api using rust + yew

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/378638/183252381-fbcc9e31-37cb-4f30-ad55-db2c623ed44f.png)

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

![image](https://user-images.githubusercontent.com/378638/183252251-5f120b68-7549-4245-8bfb-6a8f64210e83.png)

# 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
```

3. Install cargo watch
```
cargo install cargo-watch
```