| ← 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.
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!
To complete this workshop, you will need the following:
- A GitHub account.
- Access to GitHub Copilot (which is available for free for individuals!)
You will also need the following available and installed locally:
- A recent Node.js runtime.
- A recent version of Python.
- For Windows, you can install Python via the Windows store.
- The git CLI.
- A shell capable of running BASH commands.
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.
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!
- Clone the repository and start the app for the workshop.
- Add an endpoint to the server to list all breeds.
- Explore the project to get a better understanding of what needs to be done.
- Create custom instructions to ensure Copilot chat has additional context.
- Add the new feature to the website, and ensure it works!
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 → |
|---|