https://www.postgresql.org/download/windows/
https://www.postgresql.org/download/macosx/
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo -u postgres createuser --interactive
git clone https://github.com/CameronOC/SKEDD.git
cd SKEDD
virtualenv flask
. flask/bin/activate
pip install -r requirements.txt
export APP_MAIL_USERNAME="skedd.mail@gmail.com"
export APP_MAIL_PASSWORD="cumulonimbus"
export APP_SETTINGS="project.config.ProductionConfig"
export DATABASE_URL=postgres:///$(whoami)
setx APP_SETTINGS "project.config.ProductionConfig"
setx APP_MAIL_USERNAME "skedd.mail@gmail.com"
setx APP_MAIL_PASSWORD "cumulonimbus"
setx DATABASE_URL=postgres:///$(whoami)
python manage.py create_db
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
gunicorn manage:app
virtualenv flask
. flask/bin/activate
pip install -r requirements.txt
Email server:
export APP_MAIL_USERNAME="skedd.mail@gmail.com"
export APP_MAIL_PASSWORD="cumulonimbus"
for development:
export APP_SETTINGS="project.config.DevelopmentConfig"
for running tests:
export APP_SETTINGS="project.config.TestingConfig"
for production:
export APP_SETTINGS="project.config.ProductionConfig"
setx APP_SETTINGS "project.config.DevelopmentConfig"
setx APP_MAIL_USERNAME "skedd.mail@gmail.com"
setx APP_MAIL_PASSWORD "cumulonimbus"
python manage.py create_db
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
python manage.py create_admin
python manage.py runserver
cd SKEDD
nosetests
nosetests --with-coverage --cover-package=project --cover-erase