NodeJS | Building simple REST API in express

Let’s have a brief introduction about the Express framework before starting the code section:

Express: It is an open source NodeJs web application framework designed to develop websites, web applications and APIs in a pretty easier way.
Express helps us to handle different HTTP requests at specific routes.

As it is NodeJs web framework so make sure that NodeJs has been installed at our system.

For verifying type following command in the terminal:

node -v

It will show the installed version of NodeJs to our system as shown in the below screenshot.