Skip to content

00 · Prerequisites

Module 0 — Prerequisites and environment setup

Section titled “Module 0 — Prerequisites and environment setup”
Next: Getting started with Copilot CLI →

The first step to using any tool or beginning development on a new project is installation. In our case, we’ll need:

  • Copilot CLI
  • A new instance of the project
  • SDKs, frameworks and libraries installed

To streamline the last bullet point (local installation of SDKs, frameworks and libraries), this course is built to use Codespaces. Codespaces are cloud-based containers which are configured using a dev container definition. Once launched, you can interact with your codespace through an instance of VS Code running in your browser, so no local installation is required!

You’ve recently joined Contoso, and your first assignment is as part of the team developing AssetTrack, an internal asset tracking application. The first step before you can begin creating code is to get a copy of the project and the necessary tooling installed. To streamline the process you’ll do everything via Codespaces.

In this lesson, you will:

  • create a new repository based on the template for AssetTrack.
  • open the project in Codespaces.
  • install and authenticate Copilot CLI.
  • verify installation of Copilot CLI.
  • run AssetTrack.

When doing standard development, the first step is often to fork or clone the repository you’ll be contributing to. For our course, since you’ll be working through the exercises on your own, you’ll grab a separate copy of the project. You’ll do this by creating a new instance of the repository by using a template repository on your own personal GitHub account.

  1. In your browser, navigate to https://github.com/github-samples/contoso-inventory.
  2. Select Use this template.
  3. Select Create a new repository.
  4. Under Owner, select your personal GitHub account.
  5. For Repository name, enter AssetTrack.
  6. Leave the remaining options at their defaults.
  7. Select Create repository.
  8. Once the new repository has been created, select the Code button.
  9. Switch to the Codespaces tab.
  10. Select Create codespace on main.

Before pointing Copilot CLI at the codebase, you need to know the app runs in its current state. That way, when something breaks later in the course, you can be confident it was a change you (or the agent) made — not a pre-existing problem with your environment. AssetTrack spans four stacks (Java, Astro/TypeScript, .NET, and two FastAPI services), but it’s wired up so a single npm run dev command starts everything together and the Astro frontend proxies the rest. Running it once now gives you a known-good baseline and the URL you’ll keep open throughout the course.

  1. In your codespace, press ctrl+` to open the integrated terminal.
  2. Run npm run dev.
  3. Wait for the terminal to display a forwarded link to localhost:4321.
  4. Select the displayed link to open AssetTrack in a new browser tab.
  5. Confirm the AssetTrack dashboard renders.

Copilot CLI is the primary tool you’ll spend the rest of the course driving, so the final setup step is to get it installed, signed in, and verified inside the codespace. You’ll do this in a second terminal so the app keeps running undisturbed in the first one — that side-by-side layout (app on the left, agent on the right) is the workflow you’ll use for every exercise that follows. Authenticating once now means later modules can jump straight into prompting instead of stopping to handle a login flow.

  1. In your codespace, press ctrl+shift+` to open a new terminal.
  2. Install Copilot CLI by following the official install instructions.
  3. Run copilot to start the CLI.
  4. Follow the prompts to sign in with your GitHub account and authenticate.
  5. Once you reach the prompt, enter hello and press Enter.
  6. Confirm Copilot CLI responds.

With the environment in place, you’re ready to start driving Copilot CLI against a real codebase. You created your own copy of AssetTrack from a template, launched it in a Codespace backed by the course’s custom devcontainer, confirmed the app boots end-to-end, and got Copilot CLI installed and authenticated in a second terminal. That side-by-side setup — app running in one terminal, agent in another — is the workflow every remaining module builds on.

In this lesson, you:

  • created a new repository based on the template for AssetTrack.
  • opened the project in Codespaces.
  • installed and authenticated Copilot CLI.
  • verified installation of Copilot CLI.
  • ran AssetTrack.

Next, start a real conversation with the codebase.


Next: Getting started with Copilot CLI →