DEV Community


SDC Day 4

Timothy Nguyen
Software Engineering Graduate from Hack Reactor
・1 min read

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.

Discussion (0)

Forem Open with the Forem app