I find myself trying to create a postgres database, so I installed postgres and started a server with
initdb /usr/local/pgsql/data, then I started that instance with
postgres -D /usr/local/pgsql/data now how can I interact with this through node? For example, what would the
connectionstring be, or how am I able to find out what it is.
Here is an example I used to connect node.js to my Postgres database.
The interface in node.js that I used can be found here https://github.com/brianc/node-postgres
query.on function is now deprecated and hence the above code will not work as intended. As a solution for this look at:- query.on is not a function