Prerequisites
Development environment setup
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo set up the project on your local machine, please follow the directions provided in the README.md
file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.
Lesson Transcript
[00:00 - 00:16] Let's get started by reviewing what you need to setup first before we dive into coding. The first thing is to have Node.js and npm installed. I'll be using Node version 20.0.0 in my examples. So I'd recommend downloading and installing that if you don't already have it.
[00:17 - 01:56] Once node is setup, you automatically have npm as well. To download Node.js you can head over to node.js.org and click it off these big green buttons. This is for the long- time version and this is for the latest version. You can also head over to the download section and download the installer for your respective operating system. You can check which Node.js version you have installed by running node.v. I'll do the same for npm using npm.v. A great tool for managing multiple Node.js versions is Node version manager. It allows you to easily switch between node versions on your machine for different projects. I'd recommend installing and using npm too. To download npm, head over to mvm.sh which will redirect you to this GitHub repository and in here you have the installation instructions. To check if mvm is installed, run mvm.v. mvm lets you easily install and manage different Node.js versions on your machine. Some useful mvm commands are mvm install. To install a specific version mvm use to use a version mvm list to view installed versions and lastly mvm alias to set a version to the default. Next you will need to install mongo db. We'll be using mongo db as our persistence store so you need to have that downloaded and running locally.
[01:57 - 02:35] We'll be using mongo db community server. This community addition is free and open source for development and production environments. While just doesn't require docker to run, in the later part of this course, we'll use test containers which relies on docker. You can download docker desktop installer at docker.com/products/docker-dexstop. We'll need to make use of a code editor. I use Visual Studio code because it has fantastic syntax highlighting and supports debugging which will come in handy.
[02:36 - 03:02] But feel free to use whatever editor you prefer like Atom or Sublime as long as it supports JavaScript. To download Visual Studio code, head over to code.vigionsstudio.com and you can download the installer for your operating system. For making API requests, I will be using a Visual Studio code extension called REST API client. For tools like Postman or Insomniac will work great too.
[03:03 - 03:40] Having a REST client will allow us to test APIs directly. And finally, you should feel comfortable with JavaScript basics like variables, functions, objects and arrays. We won't be teaching JavaScript fundamentals in this course, but you'll need to have an understanding of the syntax. So in summary, you need to have Node, npm, MongoDB, docker, a code editor and a REST client. Make sure you have everything installed so you can follow along with the examples. See you in the next lesson.