/nodejs-basic

A sample project for beginners who wish to learn Node.js

MIT LicenseMIT

0. Overview

This is a sample project for beginners who wish to learn Node.js. We will build a small web app. To learn the concepts step by step, we suggest you clone this code repository and checkout relevant checkpoints identified by branch names.

To start learning, you will need to install some essential tools. Versions mentioned below were used on Windows 10 when preparing this project but you may use more recent versions. Install the following:

  • Git (2.19.1): Used to clone repo and checkout code of a specific branch.
  • Node (10.13.0 LTS): JavaScript runtime to run Node.js apps.
  • npm (6.4.1): Used To install and manage node modules. This is automatically installed as part of Node installation.
  • VS Code (1.28.2): Any code editor or IDE would do but we'll use Visual Studio Code for this project.

To validate that correct versions are installed, you can type the following commands on a terminal:

git --version
node -v
npm -v
code -v

To get a high-level overview of Node.js, read the Node.js article on Devopedia.

The rest of this document guides you through the project step by step. To try out code at a particular step, checkout the relevant branch. For example, to checkout code of br0.1 branch, run command git checkout br0.1. Branch names are mentioned in section headers.