Skip to main content

GitHub Codespaces

GitHub Codespaces is a cloud-based development environment that allows you to code from anywhere. It's a great way to get started with the workshop. Follow these steps to create a codespace.

  1. Navigate to the Contoso New Patient App repo and click the Code button, then select Codespaces.

  2. If prompted, select the smallest size VM to use for the codespace. As at Feburary 2023, this will be 2 vCPUs and 4GB of RAM.

  3. Select the + button to create a new codespace. It will take a few minutes to create the codespace.

    tip

    Note, if you already have an active codespace running for the repo, you can select it from the list of active codespaces.

    danger

    As at Feburary 2023, GitHub personal accounts have up to 120 core hours per month of free codespaces usage. When you have completed the workshop, be sure to stop the current codespace to preserve your usage.

    A "core hour" is a measure used for included compute usage. On a 2-core machine, you would get 60 hours free. On a 4-core machine, you would get 30 hours free, etc. Learn more

    To stop a codespace, from VS Code in your web browser, select F1 to open the command palette, then type and select Codespaces: Stop Codespace.

Congratulations! You've created a codespace. Now you can now continue with the next section of the workshop.