unicef / magicbox-open-api

An API to serve open data aggregated by administrative boundaries
http://magicboxopenapi.azurewebsites.net/docs
BSD 3-Clause "New" or "Revised" License
25 stars 9 forks source link

Connection refused 127.0.0.1:5432 #58

Open lacabra opened 5 years ago

lacabra commented 5 years ago

I cloned this repo and followed the setup instructions on the README. When I run npm run start, I get the following error:

Open maps API is up on http://localhost:8000
(node:56820) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
(node:56820) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:56820) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

There is no mention in the README of setting up any Postgres DB (default port 5432), and the application is working fine otherwise at http://localhost:8000/docs, so it's unclear from a first-time user whether that's needed or not.

mikefab commented 5 years ago

@lacabra, please excuse us, we never added a sample dataset for schools to this repository. We also do not plan to further develop:

(I will update the READMEs)

Instead, we will likely create the new global school mapping app here github.com/unicef/magicbox-kepler-app.

The current demo is here: magicbox-kepler-app.eastus.cloudapp.azure.com.