MENU

Fun & Interesting

Build and Test a RESTful TypeScript API With Astro, Postman, and Xata

James Q Quick 14,153 2 years ago
Video Not Working? Fix It Now

Learn to use Astro to build a full RESTFUL backend with Astro Server Endpoints (similar to Next.js) and TypeScript. In this video, we'll work with live data by integrating with a Xata database. We'll use the Xata client generate TypeScript types for our data as well. We'll also use the Postman VS Code extension to be able to test our API endpoints. Learn Astro 3.0 - https://astrocourse.dev/ Postman VS Code extension - https://blog.postman.com/introducing-the-postman-vs-code-extension/ Xata Database - https://xata.io/ **DISCORD** Join the Learn Build Teach Discord Server 💬 - https://discord.gg/vM2bagU **STAY IN TOUCH 👋** Newsletter 🗞 - https://www.jamesqquick.com/newsletter Follow me on Twitter 🐦 - https://www.twitter.com/jamesqquick Check out the Podcast - https://compressed.fm/ Courses - https://jamesqquick.com/courses **QUESTIONS ABOUT MY SETUP** Check out my Uses page for my VS Code setup, what recording equipment I use, etc. https://www.jamesqquick.com/uses 00:00 Introduction 01:24 Astro Overview 03:43 Server API Endpoints in Astro 04:45 Handling API GET Requests in Astro 08:57 Connecting to Xata Database 15:11 Handling API POST Requests in Astro 19:35 Handling API DELETE Requests in Astro 23:01 Handling API PUT Requests in Astro 24:22 Learn Astro 3.0 25:11 Conclusion

Comment