Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/security-union/yew-weather
- Owner: security-union
- License: mit
- Created: 2022-07-19T02:09:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T21:22:42.000Z (over 1 year ago)
- Last Synced: 2023-03-08T20:03:03.325Z (over 1 year ago)
- Topics: rust-lang, rustlang, rustwasm, yew
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.html2. 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
```