DEV Community

Timothy Nguyen
Timothy Nguyen

Posted on

SDC Day 4

Since I have my database seeded, now what I need to do is initialize my server and then connect it to my database. I had to install and use node-postgres which is a collection of node.js modules that allow me to interface with my PostgreSQL database. The process wasn't too difficult to get my express server up and running and then linked to my database connection. I then started creating my first query to grab all the product info. However, all the info is spread across a few tables. So now I need to figure out how to combine the separate data into one object.

Top comments (0)