Lesson 0 - Prerequisites
Before you start the Copilot CLI lessons, you need to get everything ready. You’ll create your own copy of the Tailspin Toys repository and spin up a codespace, whose integrated terminal you’ll use to install and run Copilot CLI in the next lesson.
In this lesson, you will:
- create your own copy of the Tailspin Toys project from the template.
- create a Codespace and confirm the project is ready.
Set up the lab repository
You’ll work against your own copy of the Tailspin Toys project. Create it now from the template repository. The new repository contains every file the lab needs.
- In a new browser window, navigate to the Tailspin Toys template.
- Create your own copy of the repository by selecting Use this template, then Create a new repository.
- If you are completing the workshop as part of an event being led by GitHub or Microsoft, follow the instructions provided by the mentors. Otherwise, create the new repository in an organization where you have access to GitHub Copilot.
- Make a note of the repository path you created (
organization-or-user-name/repository-name), as you will refer to it later in the workshop.
When you create your repository from the template, a backlog of GitHub issues is created for you automatically. You’ll work from these issues throughout the workshop — there’s nothing to file yourself.
Use a fresh copy of the workshop template. It includes repository instructions, application code, tests, a quality-checks skill, and the backlog you’ll use. If you use an older copy, check with your facilitator that it has the files you’ll need.
Create a Codespace
Next up, you’ll use a Codespace to complete the workshop.
GitHub Codespaces is a cloud-based development environment that allows you to write, run, and debug code directly in your browser. It provides a fully featured editor with support for multiple programming languages, extensions, and tools.
-
Navigate to your newly created repository.
-
Select Code.
-
Select the Codespaces tab, then select Create codespace on main.
-
Wait for the Codespace setup to finish. The template installs the project dependencies, Playwright Chromium, and the local database for you.
-
If prompted with Do you trust the authors of the files in this folder?, select Trust Folder & Continue.
-
Open a terminal in the repository root and start the application:
Terminal window npm run dev -
When Codespaces reports that port
4321is available, select Open in Browser and confirm the Tailspin Toys site loads. -
Return to the terminal and stop the development server with Ctrl+C.
Summary and next steps
You’re set up! In this lesson, you:
- created your own copy of the Tailspin Toys project from the template.
- created a Codespace and confirmed the project was ready.
Next, you’ll install GitHub Copilot CLI in your Codespace and authenticate it with your GitHub account.