Building a CLI with Rust and the GitHub API is so easy!

Published: 16 August 2024
on channel: Flo Woelki
1,972
97

A real-world use case for Rust would be to interact with the GitHub API to retrieve all repository issues and their reactions and sort them based on upvotes. This is what we are going to build today!
Also, if you want to learn more about the `?` operator in Rust, feel free to check out this video:    • Rust error handling made easier with ...  


📝 Description
In this tutorial, we will be diving into a real-world use case for Rust. We'll be interacting with the GitHub API to retrieve all repository issues and their reactions and sort them based on upvotes. This is what we are going to build today! These are only a few things you will learn in this video:
• Handling requests and response with reqwest
• Using tokio in combination with async await
• Applying recursion and pagination
• Using environment variables to hide secrets


🔗 Mentioned Links:
• https://docs.github.com/en/rest/issue...
• https://github.com/settings/tokens
• https://docs.github.com/en/rest/using...
• https://docs.github.com/en/rest/react...


⏳ Timestamps:
00:00 - Introduction
01:00 - Problem
01:40 - Listing all repository issues
17:50 - Add recursion and pagination
29:21 - List all issue reactions
36:10 - Outro


👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using emojis and paper-based animations (so have a look for that if you want to find my videos).


📨 Support and Connect!
Buy me a coffee: https://www.buymeacoffee.com/florianw...
Become a member.    / @flowoelki  
Discord:   / discord  
Instagram:   / flowydev  
LinkedIn:   / florian-woelki  
TikTok:   / florianwoelki  
GitHub: https://github.com/FlorianWoelki


#rust #cli #api #github


Watch video Building a CLI with Rust and the GitHub API is so easy! online without registration, duration hours minute second in high quality. This video was added by user Flo Woelki 16 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,972 once and liked it 97 people.