ReactJS for the frontend Flask for the backend mysql for the database
Prerequisite: Python 3.5 or higher
- Install flask using pip with 'pip install Flask'
- Pip install the dependencies in app.py, inside of the backend folder.
Example: python3 -m pip module_name
- Flask==1.1.2
- Flask-Cors==3.0.10
- flask-mysql-connector==1.1.0
- Flask-MySQLdb==0.2.0
- mysqlclient==2.0.3
- numpy==1.20.2
- pandas==1.2.3
- protobuf==3.15.7
- python-dateutil==2.8.1
- pytz==2021.1
- six==1.15.0
- Werkzeug==1.0.1
- Run the backend use "python -m flask run" inside of the backend folder.
- You will need to be able to see app.py for this to work.
- The server should be connected to port 5000 on local host.
- Check node --version, Install node.js, Npx comes with it. https://nodejs.org/en/download/
- Run "npm install" to install all dependencies
- Enter "npm start" to run the app locally where you can see app.js
Now that you have front and backend talking to each other along with the database you can use the website.
- The website logs in through authenticating with the dbms.
- username = [email protected] password = krustyKrab the role Manager
- username = [email protected] password = mammalsrule the role is Worker
- username = [email protected] password = iamthebest the role is Customer