— Node.js, JavaScript, intermediate, tutorial, intro-to-node-js — 2 min read
Welcome to the Introduction to Node.js tutorial series. This tutorial series consists of the following six parts:
By the end of this tutorial series, you will be able to:
An intermediate-level of JavaScript knowledge is assumed. Note that this is not a tutorial for beginners.
To complete this tutorial series, you'll need to install Node.js (v14 or newer).
Node.js is free, open-source, and available for all operating systems. You can install Node.js by either downloading the source code or installing it with Homebrew.
Downloading the Source Code: Official packages for all the major platforms are available here. Other package managers for Linux and Windows are listed here.
Installing with Homebrew: Homebrew is a popular package manager for macOS and Linux operating systems. On macOS, if you already have Homebrew installed, you can install Node.js very easily by running the following command in your terminal:
1brew install node
For this course, make sure you're on version 14 or greater. You can check your Node.js version by running the following command in your terminal:
1node --version
Every Node.js installation also comes with a package management tool, npm
, which allows modules to be easily installed and offers version and dependency management of packages.
nvm
is a popular way to run Node.js. This tool allows you to easily switch between Node.js versions, and install new versions to try out and easily rollback if needed.
VSCode offers a fantastic ecosystem of extensions and themes as well as debugging tools for Node.js. Like Node.js, it is free, open-source, and available for all operating systems. It is the recommended code editor for this tutorial series.
Node.js is gaining popularity in the industry. As of August 2021, Node.js had ~80k stars on Github. Many big companies (e.g., Netflix, Uber, Paypal, Microsoft) are using Node.js. Node.js is a popular choice for building microservice-oriented architectures.
Why use Node.js? Node.js is light, scalable, & fast. It uses a single-threaded, non-blocking I/O model capable of processing multiple concurrent requests using asychronous request handling. Don't worry if you aren't familiar with these terms, as they will be explained in the tutorial.
Today, Node.js is supported by a large, active open-source community. Node Package Manager (NPM) is the largest software registry in the world, hosting more than one million free, open-source packages. 11 million developers worldwide rely on NPM's publicly available and reusable modules.
Some of the most useful npm
modules today include Express.js and Socket.io, which you will explore in this tutorial series.
Now that you have the tools you’ll need, you’re ready to start the tutorial. In Part 1, you’ll learn how to work within the Node.js environment.
What did you like or didn't like about this post? Let me know what worked well and what can be improved. Your feedback is much appreciated!