is-pg-accessible
Lets know if pg is installable, accessible and operative.
Can I install pg with npm?
Can I connect to postgresql?
If I couldn't, Can I connect to postgresql with php?
Instructions
- Try to install with npm
$ npm install
-
Write your own database connection parameters in a new file local-connect-info.json (to start you can copy connect-info.json)
-
Create the database
-
Try to connect (you must see "all ok: 1 = 1" in the last console line)
$ npm start