Trouble with PostgreSQL integration

Can someone help me?

Hey @carlos_eduardo

The problem is that your Postgres instance is running on your system localhost which is not accessible from public internet. The connection string requires a host that’s accessible.

One technique that is usually used to expose localhost services is called tunnelling. You can explore that and use services such as Localtunnel ~ Expose yourself to the world or https://ngrok.com/ to make your local Postgres instance accessible during development.

Note that this is only for development purposes, ideally you should be using a Postgres instance hosted somewhere online.