Back to Browse

Call Rest API With Rust and Yew. Complete Tutorial

6.5K views
Jun 13, 2022
26:08

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 #rustlang 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 weather api client) 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

Download

1 formats

Video Formats

360pmp464.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Call Rest API With Rust and Yew. Complete Tutorial | NatokHD