Building a REST API with GitHub Copilot: A beginner's guide

GitHub April 28, 2025
Video Thumbnail
GitHub Logo

GitHub

@github

About

GitHub is the AI-powered developer platform to build, scale, and deliver secure software. We make it easier for developers to be developers: to work together, to solve challenging problems, and to create the world’s most important technologies. We foster a collaborative community that can come together—as individuals and in teams—to create the future of software and make a difference in the world. The GitHub platform is where developers can create, share, and ship the best code possible. Our community is made up of students, hobbyists, consultants, enterprise professionals, partners, and executives, building software in the way that works best for them. GitHub is much more than code. It is the home of open-source collaboration. It is where new developers get started and where experienced developers expand their knowledge. It is a community where developers come together to solve the unsolvable and test the limits of what software can do.

Video Description

In this episode, we’re taking GitHub Copilot to the next level by building a full backend REST API using Python, FLask and SQLAlchemy! Kedasha Kerr uses GitHub Copilot to make the process clear and accessible in this GitHub for Beginners video. Follow along to see how Copilot acts as your AI pair programmer, helping turn natural language into working code. Follow along to see how Copilot acts as your AI pair programmer, helping turn natural language into working code. Planventure repo: https://gh.io/planventure Blog walkthrough: https://github.blog/ai-and-ml/github-copilot/github-for-beginners-building-a-rest-api-with-copilot/ #GitHub #Copilot #API ▬▬▬▬▬▬ TIMESTAMPS ⌚ ▬▬▬▬▬▬ 00:00 How to build a REST API with GitHub Copilot 01:36 Setting up virtual environment and Flask server 02:50 Database setup with Flask and SQLAlchemy 04:14 Building user and trip models using Copilot 06:14 Initializing and viewing database tables 08:22 User authentication and JWT token setup 12:45 Testing user registration and login API 15:53 Creating trip CRUD routes with Copilot 21:12 Building default itinerary template 24:22 Finalizing API MVP, adding CORS and README Stay up-to-date on all things GitHub by connecting with us: YouTube: https://gh.io/subgithub Blog: https://github.blog X: https://twitter.com/github LinkedIn: https://linkedin.com/company/github Insider newsletter: https://resources.github.com/newsletter/ Instagram: https://www.instagram.com/github TikTok: https://www.tiktok.com/@github About GitHub It’s where over 100 million developers create, share, and ship the best code possible. It’s a place for anyone, from anywhere, to build anything—it’s where the world builds software. https://github.com