Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Local Sqlite DB to Remote Postgres DB #14

Open
edrouth opened this issue Oct 26, 2022 · 3 comments
Open

Switch from Local Sqlite DB to Remote Postgres DB #14

edrouth opened this issue Oct 26, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@edrouth
Copy link

edrouth commented Oct 26, 2022

No description provided.

@app-generator
Copy link
Owner

Hello @edrouth

Thank you for using our products. Please provide more context, if possible:

  • Nodejs version
  • Runtime error log (text format)
  • Other things you consider to be important
  • Also, clarify the meaning of the remote
    • with a local version the app works?
    • PostgreSQL client drivers are installed
    • Are you able to connect to the remote DB using any PostgreSQL tool?

The above information helps us to reproduce faster the issue.

Thank you!

@app-generator app-generator self-assigned this Oct 26, 2022
@app-generator app-generator added the bug Something isn't working label Oct 26, 2022
@edrouth
Copy link
Author

edrouth commented Oct 26, 2022

Hi team,

Let me answer each in turn.

  • Node JS Version: v16.18.0
  • Attached "localhost-1666801265109.log"
  • I am able to establish connection to database through backend, the error comes when loading a page with data
  • Remote I mean connect to AWS RDS database.
  • Installed pg package
  • Yes, I can connect to DB via TablePlus

Thanks!
localhost-1666801265109.log
Screenshot 2022-10-26 at 9 19 13 AM

@app-generator
Copy link
Owner

Hello @edrouth

After a quick look at your log, the problem seems to be in React, <DataTable> component

Our advice is to analyze the problem like this:

  • test the API and visualize the data returned
    • using POSTMAN or any other 3rd party tool
  • Use the simple JS code in React to visualize the backend data
  • The last step is to inject the data in your component

Let us know if our assumptions are correct and also your progress.

Adrian - AppSeed Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants