diff --git a/.github/steps/-step.txt b/.github/steps/-step.txt index 573541a..d00491f 100644 --- a/.github/steps/-step.txt +++ b/.github/steps/-step.txt @@ -1 +1 @@ -0 +1 diff --git a/README.md b/README.md index 5e34903..019ac84 100644 --- a/README.md +++ b/README.md @@ -16,49 +16,69 @@ _Develop code using GitHub Codespaces and Visual Studio Code!_ -## Welcome +## Step 1: Create your first codespace and push code -GitHub Codespaces is a development environment that's hosted in the cloud. +_Welcome to "Develop code using GitHub Codespaces and Visual Studio Code"! :wave:_ -- **Who this is for**: Developers, DevOps Engineers, Engineering Managers, Product Managers. -- **What you'll learn**: How to create a codespace, push code from a codespace, select a custom image, and customize a codespace. -- **What you'll build**: A codespace with devcontainer.json files, customizations, and personalizations. -- **Prerequisites**: If you need to learn about Visual Studio Code, read [Visual Studio Code Docs](https://code.visualstudio.com/docs) first. -- **How long**: This course can be completed in less than an hour. +**What's the big deal about using a codespace for software development?** A codespace is a development environment that's hosted in the cloud. You can customize your project for GitHub Codespaces by committing configuration files to your repository (also known as configuration-as-code), which creates a repeatable codespace configuration for all users of your project. Each codespace you create is hosted by GitHub in a Docker container that runs on a virtual machine. You can choose the type of machine you want to use depending on the resources you need. -In this course, you will: +GitHub offers a range of features to help your development team customize a codespace to reach peak configuration and performance needs. For example, you can: -1. Create your first codespace -2. Add a custom image -3. Customize your codespace -4. Personalize your codespace +- Create a codespace from your repository. +- Push code from the codespace to your repository. +- Use VS Code to develop code. +- Customize the codespace with custom images. +- Manage the codespace. -### How to start this course +To begin developing using GitHub Codespaces, you can create a codespace from a template or from any branch or commit in a repository. When you create a codespace from a template, you can start from a blank template or choose a template suitable for the work you're doing. - +### :keyboard: Activity: Start a codespace + +**We recommend opening another browser tab to work through the following activities so you can keep these instructions open for reference.** + +1. Start from the landing page of your repository. +1. Click the green **Code** button located in the middle of the page. +1. Select the **Codespaces** tab in the box that pops up and then click the **Create codespace on main** button. + + > Wait about 2 minutes for the codespace to spin itself up. + > **Note**: It's a virtual machine spinning up in the background. + +1. Verify your codespace is running. The browser should contain a VS Code web-based editor and a terminal should be present such as the below: + ![codespace1](https://user-images.githubusercontent.com/26442605/207355196-71aab43f-35a9-495b-bcfe-bf3773c2f1b3.png) + +### :keyboard: Activity: Push code to your repository from the codespace + +1. From inside the codespace in the VS Code explorer window, select the `index.html` file. +1. Replace the **h1** header with the below: + + ```html +