Skip to content
robi-y edited this page Nov 7, 2013 · 24 revisions

Dev. Env. Setup Notes

OS X 10.9

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

Windows 7 64 bit

  1. Install Python
  2. Install setuptools & pip(package manager) and update PATH to python and python/scripts directories
  3. Install mysql connector binaries
  4. Install VC2008 Express (alt: mingw)
  5. git clone anyway from github
  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

We currently use PyCharm for development

Application setup

  1. Define connection string, e.g., CLEARDB_DATABASE_URL = 'sqlite:///local.db'
  2. First time, create tables: python models.py
  3. run app: python main.py
  4. Browse: http://127.0.0.1:5000