Course Tools: MacOS
Command line
In these materials, you will see plenty of examples where things are tried out on the command line (or, in other words, in the terminal). As an example, web applications will be launched from the command line -- thus, some skills on working with the command line are needed for this course. If you are not familiar with the command line, see e.g.
Installation links
This page provides installation links for the course tools for MacOS-based operating systems.
Note that in the current version of the course, we are using the version 1.42.2
of Deno. Once you have installed Deno, you can use the upgrade command to set the version as follows.
deno upgrade --version 1.42.2
VSCode download page and Deno extension for VSCode. Note that VSCode also has a terminal window that you can use.
Apple, ARM64 Chips, Docker
Deno works also on Apple ARM64 chips when used directly from the terminal. However, for Docker and Docker compose, the official Deno Docker images do not yet support ARM64 out of the box.
When working with an Apple ARM64 computer, you need to adjust the project that you are working with so that it relies on another image. When using the walking skeleton, change the first line of the file Dockerfile
in folder app
to match the following:
FROM lukechannings/deno:v1.42.2
EXPOSE 7777
WORKDIR /app
COPY . .
RUN deno cache app.js
CMD [ "run", "--unstable", "--watch", "--allow-net", "--allow-read", "--allow-write", "--allow-env", "--no-check", "app.js" ]
Some information on how (and why) these images have been created can be found at https://github.com/LukeChannings/deno-arm64.
Similarly, when starting to work end to end testing and playwright, you need to use the mcr.microsoft.com/playwright:v1.38.0-vrt-arm64
Docker image baseline (or similar).