CSI2132 - Project

Setup

Be sure to add a .env file of your own with DB_USER, DB_HOST, DB_NAME, DB_PWD, and DB_PORT variables matched with those in the queries.js file for your own PostgreSQL database

To Run Web Page

  • Make sure node and npm are installed

  • Enter the Sleepo-Beepo directory

  • Use the commands npm install then npm start

  • The web page will be served to localhost:4000 and localhost:4000/listAll to list all properties

To Run CLI

  • Make sure the JDBC postgres jar file is in the project repo on the top directory

  • We used postgresql-42.2.11.jar

  • Then simply run in an IDE of choice