Prerequisite & terminologies
In this chapter will guide throught Node.js installation for MacOS, Windows, and Linux. if you already installed Node.js then you can skip this part.
You can install Node directly by downloading it from https://nodejs.org/en/ and installing it from finder.
If you want to download it from your terminal, homebrew process is very straightforward.
- Open your terminal and type
- Run command
brew install node
The easiest way to install Node in windows is, downloading the
exe package from node website https://nodejs.org/en/ & installing it.
You can install node in Linux via the official apt packages
- Run command
sudo apt updatethis will update your apt list internally.
- Install node with
sudo apt install nodejscommand.
This will install the latest Node version in your Linux systems.
Once done you can verify its installation by running
node -v command in your terminal or command prompt. It will print your Node.js version, indicating you've succesfully installed node.js
Prerequisites & the ingredients & Third party tools we are using in this course.
This course assumes you know
- Fundamentels of web development.
- What's Node.js
We will be building our APIs with Express.js a Node Framework. We will also use Mongo DB Atlas, a online database service to build a Notes API.
We will also be using glitch.com a free API hosting service.
Some common Terminologies associated with APIs will come in next chapters.
Endpoints mean the different kinds of urls in your api ends with. They are associated with the
DELETE methods of your APIs.
These mean the paths of your API endpoint.
CRUD simply means Create, Read, Update & Delete. The most common use cases of an API.
The parameters in that are appended to your endpoint with a ? in the url. Its a way to send simple data to your api.
sort is the query parameter and it's value is
It stands for Representational State Transfer. The modern standard for making APIs. Most people confuse this as a technology, but actually this is more of a concept, a standard set of best practices to make APIs.
Sometimes you need to pass some things in your API query params which could create some issues like spaces, forward slashes etc. You need to encode these special characters so that they can be sent over the internet. You can find a reference of these characters on w3schools.