Skip to content

Instantly share code, notes, and snippets.

@mapsam
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapsam/8c4e59faa699829f038b to your computer and use it in GitHub Desktop.
Save mapsam/8c4e59faa699829f038b to your computer and use it in GitHub Desktop.

Here are some really shotty install instructions.

pip install virutalenv
pip install virtualenvwrapper
brew install mysql

git clone git@github.com:codeforamerica/rva-screening.git
cd rva-screening
source ~/.base_profile
mkvirtualenv rva-screening

Install all dependencies from requirements.txt with

pip install -r requirements.txt

Start MySQL and create a new database named rva_screening

mysql
mysql> CREATE DATABASE rva_screening

Find virtualenvs postactivate folder for the rva-screening application:

vim $HOME/.virtualenvs/rva-screening/bin/postactivate

and paste the following in your postactivate file, which sets up the DATABASE_URL for your local install and automatically navigates to your directory when you want to develop.

export DATABASE_URL='mysql://root@localhost/rva_screening'
cd ~/path/to/rva-screening

Start virtualenv with

workon rva-screening

Start application with

python run.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment