Node.js express Module
Node.js express Module is used to create back end web application framework for building RESTful APIs with Node.js
Installing and using Express
NPM - Node package manager is used to install Express module.
Use below command in terminal to install Express module in node.js
Express module is used to send HTTP request by post, put, get and delete and recieve HTTP response.
$ npm install express --save
You can create a simple “Hello Nodejs tutorials” application as below example.
Save this program in file named server.js and run it using command as below.
$ node server.js
Comments