Another way to run the exercises in this reposiotry is to use Devcontainers on your VSCode ide. This is a more stable way to run the exercises as compared to codespaces.
On your local machine, please ensure that you have the following:
- Visual Studio Code
- Dev Container extension on your VScode IDE.
- Docker Desktop. You can also use Colima or Rancher Desktop on Windows as alternatives since Docker Desktop does not give free for enterprise version.
-
To get the Dev Containers up and running, press the following keyboard shortcut while being in the VS Code window to open the command palette.
- For Mac, press command + shift + P
- For Windows, press ctrl + shift + P
-
Once the palette is opened, type "dev containers" and then click on "Dev Containers: Rebuild and Reopen in Container" and then follow up options like "Java Dev .devcontainer/java-dev/devcontainer.json" etc. will be displayed. Choose any option that you would like to work on. ie. If you want to work on Javascript, click on the "JavaScript Dev .devcontainer/js-dev/devcontainer.json" vice-versa.
-
The vscode window will reload and spin up to open the container. For example, if you chose the js project, vscode will reload with a new window like this.
You should see the following according to the screenshot labels:
- "Dev Container: JavaScript Dev @ desktop-"
- The terminal that is loaded along with opening the new container.
You should be able to see something like this on your vscode terminal in your new workspace if you open a terminal on vscode.
-
You can then develop on vscode and save your work as usual but do remember to commit your work for each exercise.