Moving Server Cloud to Local - App-side Login Problem

It’s still having trouble, the app’s hanging on creating a new account.

I checked the server postgres file, and I’m getting this error:

2017-03-07 10:56:36.636 - DB user : test
2017-03-07 10:56:36.637 - Connecting to DB...
2017-03-07 10:56:38.727 - Not able connect to DB. Skipping. Reason : Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

Sounds like I’ve half-arsed the server set-up somehow (aside from needing to update the certs, I still don’t know how to do that yet). Would you mind giving me pointers on where to go/what to research from here? I may have bitten off more than I can chew.

EDIT: looking at “How To Configure Blynk Server” at the minute, it’s a bit difficult to follow.