Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,48 @@
# GitHub Copilot Hands-on - lab setup
# GitHub Copilot Hands-on-lab setup

### LEGO is awesome

These instructions will guide you through configuring a GitHub Codespaces environment that you can use to run the course labs.
If you prefer and if you know one of the other IDEs supported by Copilot, you can use that. But the instructions will reference the codespace version.

NOTE: These lab instructions are a fork of the [GitHub Copilot Hands-on](https://github.com/skillrepos/copilot-hands-on) repository. Please go to the original repository, https://github.com/skillrepos/copilot-hands-on and **give it a star** to show your support for the author of the original content on which this lab is based.

These steps **must** be completed prior to starting the actual labs.

## 1. Ensure that you are signed up for Copilot access.

If not, when signed into GitHub, click on your profile picture/icon in the upper right and either select [Copilot](https://github.com/github-copilot/signup)
Everyone in this workshop should have access to GitHub Copilot through your organization.

![Signing up for Copilot](./images/cdd70.png?raw=true "Signing up for Copilot")
If you do not have a Copilot license assigned from your organization, you can [sign up for a free 30 day trial.](https://github.com/github-copilot/signup?ref_cta=Copilot+trial&ref_loc=quickstart+for+github+copilot&ref_page=docs)

**OR** select [Settings->Copilot](https://github.com/settings/copilot) and sign up.
## 2. Create your own fork of the repository for these labs

![Signing up for Copilot](./images/cdd32.png?raw=true "Signing up for Copilot")
- Ensure that you have created a repository by forking the [Scubaninja/copilot-hands-on](https://github.com/scubaninja/copilot-hands-on) project as a template into your own GitHub area.
- You do this by navigating to the repo, clicking the `Fork` button in the upper right portion of the main project page and following the steps to create a copy in **your-github-userid/copilot-hands-on**.

You can also find help there for using Copilot in other supported IDEs, set the switch for whether or not to allow matching public code suggestions, etc.
![Forking repository](./images/cpho1.png?raw=true "Forking the repository")

![Using Copilot options](./images/cdd31.png?raw=true "Using Copilot options")
- **Once the fork has been created, open your forked instance of the repo and continue the next steps from there.**

## 2. Create your own codespace to run the labs by clicking on the button below.
</br></br>
Click here -----> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/skillrepos/copilot-hands-on?quickstart=1)
</br></br>
## 3. Start your codespace

Then click on the option to create a new codespace.
In your forked repository, start a new codespace.

![Creating new codespace from button](./images/cpho2.png?raw=true "Creating new codespace from button")
- Click the `Code` button on your repository's landing page.
- Click the `Codespaces` tab.
- Click `Create codespace on main` to create the codespace.

**This will run for several minutes while it gets everything ready.**
**This will run for a minute or two while it gets everything ready.**

- After the codespace has been initialized there will be a terminal present.

![Starting codespace](./images/cpho3.png?raw=true "Starting your codespace")

This will take a while to run.

## 3. Open the labs

After the codespace has started, open the labs document by going to the file tree on the left, find the file named **labs.md**, right-click on it, and open it with the **Preview** option.) *Alternatively, you can open it up in a separate browser tab directly from the GitHub site.*
After the codespace has started, open the labs document by going to the file tree on the left, find the file named **labs.md**, right-click on it, and open it with the **Preview** option.)

![Labs doc preview in codespace](./images/cpho4.png?raw=true "Labs doc preview in codespace")

Expand Down