Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 4.46 KB

File metadata and controls

77 lines (54 loc) · 4.46 KB

Getting started with GitHub Copilot

← Pets workshop selection Next: Workshop setup →

Built to be your AI pair programmer, GitHub Copilot helps you generate code and focus on what's important. Through the use of code completion you can create code from comments, and functions from just a signature. With Copilot chat you can ask questions about your codebase, create new files and update existing ones, and even perform operations which update files across your entire codebase.

As with any tool, there are a set of skills which need to be acquired, which is the purpose of this (roughly) one hour workshop. You'll explore the most common workloads available to you by exploring and updating an existing application to add functionality.

Prerequisites

The application for the workshop uses is built primarily with Python (Flask and SQLAlchemy) and Astro (using Tailwind and Svelte). While experience with these frameworks and languages is helpful, you'll be using Copilot to help you understand the project and generate the code. As a result, as long as you are familiar with programming you'll be able to complete the exercises!

Note

When in doubt, you can always highlight a block of code you're unfamiliar with and ask GitHub Copilot chat for an explanation!

Required resources

To complete this workshop, you will need the following:

Required local installation

You will also need the following available and installed locally:

Code editor

Local services

Note

Linux and macOS are able to run BASH commands without additional configuration. For Windows, you will need either Windows Subsystem for Linux (WS) or the BASH shell available via git.

Getting started

Ready to get started? Let's go! The workshop scenario imagines you as a developer volunteering your time for a pet adoption center. You've been asked to add a filter to the website to allow people to limit their search results by breed and adoption status. You'll work over the next 5 exercises to perform the tasks!

  1. Clone the repository and start the app for the workshop.
  2. Add an endpoint to the server to list all breeds.
  3. Explore the project to get a better understanding of what needs to be done.
  4. Create custom instructions to ensure Copilot chat has additional context.
  5. Add the new feature to the website, and ensure it works!

Check out these resources to dive in and learn more

Check out the resources in GitHub-Copilot-Resources.md.

This resource list has been carefully curated to help you to learn more about GitHub Copilot, how to use it effectively, what is coming in the future and more. There are even YouTube playlists that include the latest videos from the GitHub Developer Relations team and others from GitHub.

← Pets workshop selection Next: Workshop setup →