- Create a codespace on GitHub. (They are also refered to as
containers
)
-
Make a
.devcontainer
folder and create adevcontainer.json
file inside it. -
Copy and paste the following JSON into the
devcontainer.json
file:{ "features": { "ghcr.io/devcontainers-extra/features/node-asdf:0": {} }, "postCreateCommand": "npm install" }
-
Press
Ctrl + Shift + P
, type Rebuild to rebuild your container, and select Full Rebuild.
-
Run
npm install
if the container hasn't already executed the command. -
Use
npm start
to application.