keithwhor / nodal

API Services Made Easy With Node.js

Home Page:http://www.nodaljs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Common Postgres Error

nsipplswezey opened this issue · comments

commented

During their first Nodal app, users often run into issues with Postgres.

Since Nodal offers out of the box integration with Postgres, addressing these setup issues will help make starting a new Nodal project as frictionless as possible.

Issues:
If a user is running windows, what's a good Postgres.app alternative?
If a user doesn't want to get Postgres.app, what should they do?

nodal db:create

will sometimes throw something like

no actor postgres detected

Essentially this means that there isn't a postgres username called postgres set up in their postgres instance.

I also often see

no postgres server found at localhost:5432

as well.

Let's add some useful error response so that if a user does a

nodal db:create

and they don't have postgres installed, we point them to the best place on mac, and the right place on windows.

And if their postgres instance isn't set up correctly, we point them towards how to get it going.

Gonna take care of this with #252.