项目作者: michellbrito

项目描述 :
A terminal mysql node js application that allows the user to SELECT, DELETE, INSERT, UPDATE, INNER JOIN.
高级语言: JavaScript
项目地址: git://github.com/michellbrito/bloodbank.git
创建时间: 2019-10-27T01:02:47Z
项目社区:https://github.com/michellbrito/bloodbank

开源协议:

下载


Blood Bank Project

This blood bank project implements a terminal node js application that allows the user to SELECT, DELETE, INSERT, UPDATE, INNER JOIN.

ER-Diagram

ER-Diagram

Dependencies Used

  • mysql
  • console.table
  • inquirer
  • dotenv

Installation

OS X & Linux:

  1. // clone the repo into computer
  2. git clone https://github.com/michellbrito/bloodbank.git
  3. // cd into the repo
  4. cd bloodbank
  5. // create an .env file and password to .env
  6. touch .env
  7. open .env
  8. DB_PASS=your_password
  9. // install npm packages stored in the package.json
  10. npm i
  11. // start the node application
  12. node bloodbank.js

Usage example

  • Run the schema.sql, blood_bank.sql, donor.sql, hospital.sql, patient.sql, blood_bank_donations.sql, blood_type_compability.sql, hospital_donations.sql, patient_blood_usage.sql in your mysql workbench.

  • Create an .env file and set your own password
    DB_PASS: your_password

  • Run the application
    node bloodbank.js

  • You can now SELECT, INSERT, UPDATE, DELETE, SELECT INNER JOINS, QUIT by clicking the options

Video