aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.devcontainer/devcontainer.json11
-rw-r--r--README.md7
2 files changed, 18 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..ef9d6f7
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,11 @@
+{
+ "name": "golings",
+ "image": "mcr.microsoft.com/devcontainers/base:bullseye",
+ "postCreateCommand": "go install github.com/mauricioabreu/golings/golings@latest",
+ "features": {
+ "ghcr.io/devcontainers/features/go:1": {
+ "version": "latest"
+ },
+ "ghcr.io/stuartleeks/dev-container-features/shell-history:0": {}
+ }
+}
diff --git a/README.md b/README.md
index 012b0d5..dde74b9 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,13 @@ Go to the [releases page](https://github.com/mauricioabreu/golings/releases) and
It's pretty awesome and uses the playground so you can play with the exercises without installing anything.
+### DevContainer
+
+1. Install Docker/Podman & VSCode & Configure
+1. Clone the repository and open it in VSCode.
+1. You will be prompted to reopen the code in a devcontainer. The container is pre-configured with go and all of the tools needed to debug go code.
+1. Open a new embeded terminal and run `golings watch` to start the exercises.
+
## Doing exercises
All the exercises can be found in the directory `golings/exercises/<topic>`. For every topic there is an additional README file with some resources to get you started on the topic. We really recommend that you have a look at them before you start.