#Installation
##Getting the files
git clone https://github.com/benlawson/Photoshare-Skeleton.git
cd Photoshare-Skeleton/
##Database setup: (for ubuntu) First install MySQL with the following:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysqlclient-dev
Then start mysql:
mysql -u root -p
password is None so just press enter.
source ./schema.sql
Now quit MySQL (enter CTRL-D or \q)
##Application Setup(Mac):
virtualenv photoenv
source photoenv/bin/activate #use photoenv/Scripts/activate on windows
pip install -r requirements.txt
python app.py
Install the flask login module first
sudo pip install flask-login
You can check it is installed successfully by using
pip show flask-login
To start the app, use
export FLASK_APP=app.py
flask run
To debug the application, in the folder 'Photoshare-Skeleton', use
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run
You can now point your favorite web brower to localhost:5000 to see your web app.