Skip to content

BCStudentSoftwareDevTeam/urcpp

 
 

Repository files navigation

Requirements

  • Python2.7
  • linux, unix, mac, windows(with attachments), Ubuntu
  • virtualenv
  • mysql and python mysql-db

Setup

  1. In your working environment, clone the URCPP Repo:
  • https://github.com/BCStudentSoftwareDevTeam/urcpp as of 02/10/2022
  1. Pull the most recent changes
  2. Run source setup.sh

Create database with Phpmyadmin

  1. 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
  1. Create a new database named urcpp_flask_v2
  • If a database of that name already exists, drop it and create it again
  1. Create a user named urcpp-flask with password DanforthLabor123!
  2. Grant all permissions on the database urcpp_flask_v2 to urcpp-flask Continue to step 14.

Create database with MySQL Workbench and Terminal

  1. In your terminal use the command mysql -u root -p. You will be prompted to enter your password
  2. To create the database: CREATE DATABASE urcpp_flask_v2; (Make sure you include the ;)
  3. To create a user named urcpp-flask with password DanforthLabor123!: CREATE USER 'urcpp-flask'@localhost IDENTIFIED BY 'DanforthLabor123!';
  4. To Grant all permissions on the database urcpp_flask_v2 to urcpp-flask: GRANT ALL PRIVILEGES ONurcpp_flask_v2. * TO 'urcpp-flask'@localhost;
  5. To make sure permissions take effect: flush privileges;

Continue from here again

  1. Create a file named secret_key in the api folder
  • secret_key MUST contain some alphanumeric characters. Anything will work including AnythignWillWork
  1. Comment out lines 20-27 in api/__init__.py
  2. Run python recreate_static.py
  3. Run python recreate_dynamic.py
  4. Comment lines 20-27 in api/__init__.py back in
  5. Run python api.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors