Before we start to build Rest API, I will explain about express first.

What is Express?

Express is Node.js web application framework that provides a robust set of features for web and mobile applications. Such as create routing, middleware and handle requests and response, etc. This allows us to develop the web using Node.js more conveniently and quickly.

Let’s start install Node.js and NPM

  1. Install Node.js to being able to run javascript on the server
  2. Install NPM stand for Node Packages manager is the package manager for the Node Javascript platform.

After you install both of them, check the version of Node by running the following command.

node -v

The first start builds the project and install Express

we going to start will create the folder and package.json file.

--

--