This project was made by Computer Science Undergraduate students from the University of Calgary for the CPSC 471 Fall 2022 - Database Management Systems course.
The following technologies and tools were used to build our project:
- ReactJS (JavaScript)
- Node.js
- CSS
- HTML
- MySQL
- Easiest way is to clone the repository:
- This section is only necessary if you want to download the source code and run in it at localhost in your local device.
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
On your terminal, do the following to clone the repository:
$ git clone https://github.com/Joey-mi/social-engineering-quiz/tree/main-page
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"
},
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
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
Before you run the code, you will need to create your database which you can import from:
CPSC471 Group7 Database.sql
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
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
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.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
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.
- Emir Avci
- Rei Tsunemi
- Amirreza Pazira