Skip to content
robi-y edited this page Sep 29, 2014 · 24 revisions

Dev. Env. Setup Notes

OS X 10.9

  1. Install pip: sudo easy_install pip setuptools
  2. Install mysql connector source instructions
  3. This script might help too, and also installing full django stack
  4. git clone ...
  5. dependencies: pip install -r requirements.txt

virtualenv setup

  • sudo pip install virtualenvwrapper
  • source /usr/local/bin/virtualenvwrapper.sh (add to ~/.bash_profile | ./bashrc (for Linux))
  • mkvirtualenv anyway
  • pip install -r requirements.txt
  • workon anyway (each time you start working)

Windows 7 64 bit

  1. Install Python 2.7
  2. Install setuptools & pip(package manager) and update PATH to python and python/scripts directories (e.g. PATH=%PATH%;C:\Python27\Scripts)
  3. Install mysql connector binaries
  4. Install VC2008 Express (alt: mingw)
  5. git clone anyway from github (first install git, e.g. by installing github for windows)
  6. cmd to the anyway directory (e.g.> cd C:\Users\Admin\Documents\PycharmProjects\anyway).
  7. run:> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
  8. run:> pip install -r requirements.txt

Local First Run

  1. Define connection string:
  • bash: export CLEARDB_DATABASE_URL='sqlite:///local.db'
  • windows shell: set CLEARDB_DATABASE_URL="sqlite:///local.db"
  1. First time, create tables: python models.py
  2. Populate the data (markers etc.) - python process.py
  3. run app: python main.py (or: foreman start if you installed heroku toolbelt)
  4. Browse: http://127.0.0.1:5000

IDE

We currently use PyCharm for development (or not :)