Repository files navigation
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/urcpp as of 02/10/2022
Pull the most recent changes
Run source setup.sh
Create database with Phpmyadmin
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-flask with password DanforthLabor123!
Grant all permissions on the database urcpp_flask_v2 to urcpp-flask
Continue to step 14.
Create database with MySQL Workbench and Terminal
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-flask with password DanforthLabor123!: CREATE USER 'urcpp-flask'@localhost IDENTIFIED BY 'DanforthLabor123!';
To Grant all permissions on the database urcpp_flask_v2 to urcpp-flask: GRANT ALL PRIVILEGES ONurcpp_flask_v2. * TO 'urcpp-flask'@localhost;
To make sure permissions take effect: flush privileges;
Create a file named secret_key in the api folder
secret_key MUST contain some alphanumeric characters. Anything will work including AnythignWillWork
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__.py back in
Run python api.py
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.