![]() |
VOOZH | about |
Express.js is the most powerful framework of the node.js. Express.js is a routing and Middleware framework for handling the different routing of the webpage, and it works between the request and response cycle. Express.js use different kinds of middleware functions in order to complete the different requests made by the client for e.g. client can make get, put, post, and delete requests these requests can easily handle by these middleware functions.
Working of the middleware functions:
👁 ImageInstalling module: Install the express module using the following command.
npm install express
Project structure: Our project structure will look like this.
👁 ImageHandling Multiple requests using Express.js:
Express.js contains multiple methods to handle all types of requests rather than work on a single type of request as shown below:
Run index.js file using below command:
node index.js
Output:
Server is Running
Handling Multiple Requests: Now open the postman tool and send the following requests: