A blood bank database for CMPT 354 Group 26, Summer 2022.
Latest commit hash: commit 8e0a1d0c4c5f9058749ce11a9c2b5295c4381226
View the app: https://best-354-app.herokuapp.com/
View the documentation
Make sure you have Node.js and the Heroku CLI installed.
npm install
Connect to postgres with user password 'root'
psql -h localhost -U postgres
Create a database called 'bbdb'
CREATE DATABASE bbdb;
Connect to the database
\c bbdb;
Run the sql script to create and populate tables
\i table_setup.sql;
node index.js
The app should now be running on localhost:5000.
The code for the frontend pages is in views/pages
The code for the backend (routes, queries) is in index.js
The code to create and populate the tables is in table_setup.sql