Building a CLI with Rust and the GitHub API is so easy!
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: https://youtu.be/Z6wxawIPUaw 📝 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/issues/issues?apiVersion=2022-11-28#list-repository-issues • https://github.com/settings/tokens • https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28 • https://docs.github.com/en/rest/reactions/reactions?apiVersion=2022-11-28 ⏳ 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! Become a member. https://www.youtube.com/@FloWoelki/membership Discord: https://discord.gg/TnA7drJ X / Twitter: https://x.com/FlorianWoelki LinkedIn: https://www.linkedin.com/in/florian-woelki/ GitHub: https://github.com/FlorianWoelki #rust #cli #api #github
Download
0 formatsNo download links available.