Skip to content

How to use DevContainer for local and CodeSpace Development

Gwyneth Peña-Siguenza edited this page May 23, 2022 · 2 revisions

Learn to Cloud has support for devcontainers, thank you Kevin.

devcontainers allow developers to work on any project without having to set up or configure your machines first. I highly recommend you read this article to get a better idea on what problem DevContainers solve.

Make sure you have this installed on your machine:

How to use:

  1. Open the project in visual studio code and you'll be prompted to Launch the devcontainer
  2. Initial launch might take a few minutes as it needs to install requirements locally.
  3. Hit F5 to run the launch.json file in .vscode. This will start CLI and connect to port 3000
  4. Edits that are saved will cause a reload of the site with the new changes.

Note: This can also be run in a code space as well. Hot reload does not work. You will need to manually refresh the page.