This repository contains examples for database connection and run SELECT query.
git clone the repository
npm install pg
In file pg-connect.js set credentials (user, host, database, password, port) to your own values.
node pg-connect.js
Примеры работы с базой данных