Express
A good way to get the job done with fewer notes is by using the Express framework. On the expressjs.com website, it is called a minimal and flexible node.js web application framework, providing a robust set of features for building web applications.
There probably is no better way to describe what Express can do for you. It is minimal so there is little overhead for the framework itself. It is flexible, so you can add just what you need. As it gives a robust set of features, this means you do not have to create them yourselves and they have been tested by an ever-growing community.
Installing Express
Of course, Express is also a node module, so we install it as such. At the time of writing, we used Express 4. In your project directory for your application, type:
npm install express
Or you can also use:
npm install —save express
If you specify the —save
option, npm
will update the package.json
file. You will notice that a folder called express
will be created inside node_modules...