How to connect to a PostgreSQL database in Node.js

A simple example about how to connect to a PostgreSQL database using Node.js