Author: Ellen Liu Last Edit: 8/7/2017
If you need python, go to https://www.python.org/downloads/.
If you need Git, go to http://git-scm.com/downloads.
If you need VM, you can download VirtualBox at https://www.virtualbox.org/wiki/Downloads.
If you need Vagrant, go to https://www.vagrantup.com/downloads.
From the terminal, run:
'git clone https://github.com/ellenmliu/Catalog.git catalog'
In terminal, change directory to catalog then run the Vagrant to launch your virtual machine. Then we would log the terminal into the virtual machine. To do so you would run this in terminal:
'cd catalog
vagrant up
vagrant ssh'
To log out you would run: 'exit'
Once you are logged in your VM, you want to change the directory to /vagrant. Make sure you are in the right directory by typing in ls and it should show all the files and folders. You would then initialize the database.
'cd /vagrant
ls
python database_setup.py'
I have provided categories and items already, so to add them you would run:
'python categoriesanditems.py'
Lastly, to run the web server, run:
'python views.py'
To view the catalog app, visit http://localhost:8000/. From there you can login in or view the public site. Once you login, you can add, edit, or delete items.
If you do not have the necessary modules installed, please run these few lines in the terminal.
'curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python
sudo easy_install pip
sudo pip install requests
sudo pip install httplib2
sudo pip install flask
sudo pip install sqlalchemy
sudo pip install oauth2client'