Project for CMPSC431W
Team Name: Two's Complement
Team Members: Dylan Nguyen, Paul Kim, Chinmay Garg, Pocholo Gayan
Install VirtualBox and Vagrant
-
git clone https://github.com/PochGee/CMPSC431W_Project.git
-
cd CMPSC431W_Project
-
vagrant up
(takes some time) -
vagrant ssh
(should ssh you into your VM) -
Edit your hosts file on your local machine to point
192.168.56.101
totemplatesandmoe.local
- Windows: `C:/Windows/System32/drivers/hosts` - OSX: `/etc/hosts`
- Go to the root project folder on host machine
vagrant up
(if the vm isn't on yet)vagrant ssh
cd /var/www/src
python3 run.py
(run withsudo
if there are any permission denied errors)- Go to templatesandmoe.local:5000 in your browser
Changes can be made through the host machine and will automatically be synced to the VM. Any files changes should be detected, and the application will be restarted automatically.
- SSH into the VM
mysql -u root -p
- Enter
123456
as the password CREATE DATABASE templatesandmoe DEFAULT CHARACTER SET utf8;
exit
cd /var/www/src/sql
mysql -u root -p templatesandmoe < database1_2015-10-10.sql
mysql -u root -p templatesandmoe < new_fields.sql
mysql -u root -p templatesandmoe < testdata.sql
mysql -u root -p templatesandmoe < [sqlfile]