koopjs / koop-app-example

A Koop express application example with some common providers.
Other
23 stars 35 forks source link

error: Could not connect to the database: getaddrinfo #33

Closed ca0v closed 7 years ago

ca0v commented 7 years ago

Tried it out, quickly reports error: Could not connect to the database: getaddrinfo.

But I guess looking at the code was the point of this exercise anyway.

dmfenton commented 7 years ago

I think your problem is that you do not have postgres running locally or the config doesn't match the port or address of your database.

In any event, this sample needs to be updated for Koop 3.0. Until that happens, I'd recommend checking out: https://github.com/koopjs/koop-sample-provider/blob/master/server.js