Setting up our environment
In this lesson, we will install Deno and create our setup for the rest of the course.
Setting up our development environment#
Before we get started with this course, it is important to install the tools and utilities we will need.
First, download VSCode onto your system. You can get it viathe website, or use a package manager like
Open it, and create a folder anywhere on your computer which will serve as the
course folder. I prefer the path
~/dev/newline/<course_name>, but you are free
to place it wherever you like.
Make sure that VSCode is open in your course folder for the rest of this page (and this course) as we will set up your workspace properly a bit further down.
For installing Deno, you have two options; installing locally, or using Docker.
Option A) Installing locally (normal setup)#
You should now have Deno installed locally and it should be available in your
shell. You can confirm this by typing
deno -V or
deno --version (for verbose
output, try them both!)
The output should look similar to this:
Option B) Using Docker (advanced setup)#
You can easily run code by executing your code from the shell like this: