express module node.js

Express module is one of the most installed module in Node.js.  Express is a flexible Node.js web application framework which provides a robust set of features for web as well as mobile applications.
Using express we can create robust API’s very easily and quickly .

NPM (Node.js package manager)

NPM comes with node.js installation. It is node.js package manager, as the name suggests it is used to install node programs/modules. We can also easily specify and link dependencies.

npm install express                                installs express module

npm install express –save                     installs express and updates the dependencies in package.json

Modules get installed into the “node_modules” folder .

package.json in Node.js

This file goes in the root of our package or application and it tells how our package is structured and what to do to install it.

“npm init” command will create a package.json file and it will ask for details as shown below