Skip to content
robi-y edited this page Dec 10, 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.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
  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 (or not :)

Setting up the development and deployment environment

  1. Install git
  2. Pull the code: ...

Local first run

  1. Define connection string, e.g., CLEARDB_DATABASE_URL = 'sqlite:///local.db' (on Windows: > set CLEARDB_DATABASE_URL=sqlite:///local.db, bash: export CLEARDB_DATABASE_URL='sqlite:///local.db')
  2. First time, create tables: python models.py
  3. Populate the data (markers etc.) - python process.py
  4. run app: python main.py
  5. Browse: http://127.0.0.1:5000