codefordenver / di_geocoding

Data Initiative Online Geocoding Tool
GNU General Public License v2.0
1 stars 0 forks source link

Stories in Ready

Data Initiative Online Geocoding Tool

The Geocoding tool is a project of Gary Community Investments

with colaborartion fro Code for Denver.

The tool is designed to allow for quick and simple uploading and mapping of data in various formats. This repo in particular holds the source code with advanced front end templates that Code for Denver has worked on.

The project is built in Python using the Django web framework. Developers should have some familiarity before diving in (see the tutorial)

Getting started

  1. git clone this repo

  2. install postgres and create a database (named geocode) for this project. make sure python - pycopg2 is installed - pip install psycopg2

  3. (optional) cd into the repo and create a virtual environment and install the dependencies.

(these commands are for bash, for windows checkout virtualenv-win)

pip install virtualenv
pip install virtualenvwrapper

You'll need to source /usr/local/bin/virtualenvwrapper.sh or wherever it is installed - read more on setup here. Then you can run the following command to install the dependencies:

mkvirtualenv -a [paste current path again] -r requirements.txt geocode

activate the virtual environment via workon geocode

  1. to insure the right libraries are installed, run pip install -r requirements.txt

  2. start the app with python manage.py runserver. to see other app management commands simply run python mange.py