CS3200DB
Flask server running on localhost:5000 Acts as an API only, must be run alongside React front end.
ASSUMES CREDITIALS: username: root password: webdev database: cs3200final If other credentials are used, configure the global variables in run.py to reflect proper login credentials.
To run:
- Create new directory
- In that directory, run “git clone https://github.com/stevenarditti/CS3200-Final-Backend”
- Run the MySQL data dump (database_dump.sql)in MySQLWorkbench to set up the schemas and load the DB.
- in run.py on line 13, change password to your MySQLWorkbench root password.
- run “pip install flask flask_api flask_cors pymysql”
- If on Mac, type “export FLASK_APP=run.py” followed by “python -m flask run”
- If on Windows, set FLASK_APP=run.py python -m flask run