Rust Yew Call REST USA Weather API Open Data Complete Tutorial
Security Union
How to call a rest API using a web app frontend using 100% Rust.
WebAssembly opens the door for frontend developers to use languages that don't compile to JavaScript, like Rust.
This technology will change web development!!
We use js-sys, web-sys, and friends to power this web application.
Let me know if you would like me to OpenSource this project.
00:00 Introduction 00:10 What We'll Build (yew vp9 video streaming app) 00:20 Weather API Research 01:41 Project Setup 01:19 Creating basic yew app structure 03:20 Calling HTTP Rest endpoint from Rust 05:05 Printing API Result to the console 06:34 Creating Rust structs to store Forecast 08:52 Things go sideways! troubleshooting json serde parser 11:08 Printing parsed Rust structure to the console 11:18 Rendering weather data to the page 13:25 Testing rendering weather data to the page 13:47 Creating YEW components to render each weather update 18:17 Happy path works: Rendering weather API data with yew 19:54 Making yew app robust to errors 25:18 Testing YEW app with no internet connection ... https://www.youtube.com/watch?v=dSJULWtd3y0
213523741 Bytes