- Python2.7
- linux, unix, mac, windows(with attachments), Ubuntu
- virtualenv
- mysql and python mysql-db
- In your working environment, clone the URCPP Repo:
https://github.com/BCStudentSoftwareDevTeam/urcppas of 02/10/2022
- Pull the most recent changes
- Run
source setup.sh
- Go to your Phpmyadmin interface and log in with your credentials
- Located here:
http://0.0.0.0/phpmyadmin/Make sure to replace 0.0.0.0 with your server's IP address
- Create a new database named
urcpp_flask_v2
- If a database of that name already exists, drop it and create it again
- Create a user named
urcpp-flaskwith passwordDanforthLabor123! - Grant all permissions on the database
urcpp_flask_v2tourcpp-flaskContinue to step 14.
- In your terminal use the command
mysql -u root -p. You will be prompted to enter your password - To create the database:
CREATE DATABASE urcpp_flask_v2;(Make sure you include the ;) - To create a user named
urcpp-flaskwith passwordDanforthLabor123!:CREATE USER 'urcpp-flask'@localhost IDENTIFIED BY 'DanforthLabor123!'; - To Grant all permissions on the database
urcpp_flask_v2tourcpp-flask:GRANT ALL PRIVILEGES ONurcpp_flask_v2. * TO 'urcpp-flask'@localhost; - To make sure permissions take effect:
flush privileges;
- Create a file named
secret_keyin theapifolder
secret_keyMUST contain some alphanumeric characters. Anything will work includingAnythignWillWork
- Comment out lines 20-27 in
api/__init__.py - Run
python recreate_static.py - Run
python recreate_dynamic.py - Comment lines 20-27 in
api/__init__.pyback in - Run
python api.py