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.

Install VSCode#

First, download VSCode onto your system. You can get it viathe website, or use a package manager likebrew or apt.

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.

Install Deno#

For installing Deno, you have two options; installing locally, or using Docker.

Option A) Installing locally (normal setup)#

To install locally, we will start by following the instructions on thehomepage. Seedeno_install for more options.

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)#

Recently Deno adopted the docker image fromAndy Hayden, and made it into theirofficial Docker image.

You can easily run code by executing your code from the shell like this:

 

This page is a preview of Build and deploy a REST API with Deno

Start a new discussion. All notification go to the author.