Skip to content
arghgr edited this page Dec 22, 2014 · 9 revisions

Installation

Here's the install waterfall if you have Mac OS X:

(terminal commands in bold)

  1. Homebrew - An OSX package manager
  2. Python - A language used by MongoDB
  3. MongoDB - With Homebrew: brew update + brew install mongodb
  4. Pip - A Python package manager (if you've installed Python, Pip should already be installed)
  5. pip install -r requirements.txt - Installs the dependencies for this repo
  6. Download the SFPD data repo's zip file, unzip it, and put the resulting folder into your local machine's top-level directory for this repo (the folder where .gitignore and robots.txt live)
  7. Start MongoDB: sudo mongod (may need to run sudo mongod --repair)
  8. In a new window start Matthew's script, which builds a MongoDB database out of the SFPD data: python build_db.py
  9. Run mongo to enter mongo shell or python analysis.py to run queries that write to files in /analysis
Clone this wiki locally