Master Expo Router API Routes | Handle Requests & Stream Data

Master Expo Router API Routes | Handle Requests & Stream Data

10.027 Lượt nghe
Master Expo Router API Routes | Handle Requests & Stream Data
APIs are the backbone of modern apps. That's why Expo Router's API Routes are so important. They make it easier to define and manage backend logic right inside your Expo app. In this video we'll cover everything from the basics of API routes, and handling requests, to advanced topics like streaming responses, integrating openAI in a secure manner, keeping your API Keys safe, and even deploying your API routes along with your app. 👨‍💻 Source Code → https://github.com/betomoedano/expo-api-routes.git 📂 Docs → https://docs.expo.dev/router/reference/api-routes ⌚ Timestamps ⌚ 00:00 Introduction to API Routes 00:29 Resources and Documentation 01:23 Demo 02:24 Creating a Home Screen 06:27 How to create an API Route 08:55 Fetching Data from the Client 11:29 Setting Expo Router Origin 12:40 Installing Backend Dependencies 17:13 How to implement an AI API Route 19:44 How to get an OpenAI Secret Key 20:18 How to add an OpenAI Secret Key 21:31 Finishing AI API Route 25:24 How to handle streaming from the Client 30:19 Testing Integration 31:17 Testing Integration on Web 31:53 Deploying to EAS Hosting 34:56 Outro #reactnativetutorial #reactnative #expo