In the second part of this lab, students will create a Postgres database to hook up to the Unearthed app they created in the previous lab. They will also refactor their frontend code to accept information from the database rather than the JSON file.
Before installing dependencies, you will need node
and npm
installed globally on your machine by installing NodeJS onto your machine.
To install the dependencies, run:
npm install
Alternatively, you can install the dependencies individually:
npm install express
npm install nodemon
npm install pg
In the repo directory, run the following in your terminal:
npm run dev
Visit the web application in the browser:
http://localhost:3000/
Last Updated: March 2023