Skip to content

selcukemiravci/Blood-Bank-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPSC 471 Final Project - Blood Management System

Table of Contents

Description

This project was made by Computer Science Undergraduate students from the University of Calgary for the CPSC 471 Fall 2022 - Database Management Systems course.

Project Demo

Requirements:

The following technologies and tools were used to build our project:

  • ReactJS (JavaScript)
  • Node.js
  • CSS
  • HTML
  • MySQL

Downloading the project:

Installation

!!! Note !!!

  • This section is only necessary if you want to download the source code and run in it at localhost in your local device.

Step 1: Node.js

In order to launch our project, you need to download Node.js (LTS version is recommended for most users)
After that, open up your terminal and check if Node is installed:

$ node -v
v16.13.0

Also, check if npm is installed, which comes with Node

$ npm -v
8.1.0

Step 2: Clone GitHub Repository

On your terminal, do the following to clone the repository:

$ git clone https://github.com/Joey-mi/social-engineering-quiz/tree/main-page

Step 3: Check JSON File

Go to the package.json file in your local machine and make sure you have the following script properties:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

Step 4: Install Dependencies

Execute the following commands in your terminal before starting our project :

$ npm install

This will download all the dependencies defined in the package.json file and into a node_modules folder.
This folder will created in the root directory of the social-engineering-quiz folder in your local machine

Step 5: External Libaries

If you have never used material-ui, execute the following commands in your terminal before starting our project :

npm install @mui/material @emotion/react @emotion/styled

Then you now have to install extenal libraries for the server. Execute these commands on server folder in your directory.

npm install axios
npm install cors

Step 6: Connecting the Database

Before you run the code, you will need to create your database which you can import from:

CPSC471 Group7 Database.sql

Step 7: Starting the App

First, open 2 terminals, one for the server and one for the website.

Go to the root directory of the project and then start the app:

$ cd Blood-Bank-Management-System    // first, go to root directory of the project...
$ cd client                          // make sure you cd into clinet folder
$ npm start                          // then, start the app in the root directory

Go to the room directory of the project and then start the server:

$ cd Blood-Bank-Management-System    // first, go to root directory of the project...
$ cd server                          // make sure you cd into server folder
$ node index.js                      // then, start the server in your terminal

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Other Available Scripts

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

AUTHORS:

  • Emir Avci
  • Rei Tsunemi
  • Amirreza Pazira

LICENSE

MIT

About

Repository for CPSC 471 Final Project - Team 07

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published