how to connect postgreSQL on node js using SEQUELIZE

how to connect postgreSQL on node js using SEQUELIZE

If you need assistance setting up your Aiven for PostgreSQL service, here is the Getting Started Guide.

As for Sequelize, I would suggest looking at the Sequelize documentation.

Please let us know if you run into a specific question on your Aiven for PostgreSQL service.

Take care!

Hi @jennjunod, I was able to connect to the database but I was unable to run sequelize migration which is very crucial to the project because the migration creates the table to store the data.
this is the error I got after about two minute of loading.

Sequelize CLI [Node: 23.2.0, CLI: 6.6.2, ORM: 6.37.5]

Loaded configuration file “config/config.js”.
Using environment “development”.

ERROR: connect ENETUNREACH 15.236.42.203:5432

I have checked the documentation on sequelize and I have checked Aiven Getting started too but this issue was not addressed there. Kindly help with steps to take.

Regards.