Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michellbrito/bloodbank
A terminal mysql node js application that allows the user to SELECT, DELETE, INSERT, UPDATE, INNER JOIN.
https://github.com/michellbrito/bloodbank
blood-bank mysql node-js
Last synced: 4 days ago
JSON representation
A terminal mysql node js application that allows the user to SELECT, DELETE, INSERT, UPDATE, INNER JOIN.
- Host: GitHub
- URL: https://github.com/michellbrito/bloodbank
- Owner: michellbrito
- Created: 2019-10-27T01:02:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T22:51:58.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T10:37:22.125Z (over 1 year ago)
- Topics: blood-bank, mysql, node-js
- Language: JavaScript
- Homepage:
- Size: 7.14 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://i.imgur.com/FXhGkYt.png)## Dependencies Used
- mysql
- console.table
- inquirer
- dotenv## Installation
OS X & Linux:
```sh
// clone the repo into computer
git clone https://github.com/michellbrito/bloodbank.git// cd into the repo
cd bloodbank// create an .env file and password to .env
touch .env
open .env
DB_PASS=your_password// install npm packages stored in the package.json
npm i// start the node application
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](blood_bank_demo.gif)