Skip to content

gocodeboulder/hotspots-mapfish

Repository files navigation

HOTSPOTS

Using the mapfish framework

Stories in Ready

To test:

  1. Install Python 2 and PostgreSQL, pip and virtualenv. The installation of pip and virtualenv on osx and linux can be accomplished as follows.
sudo easy_install pip
sudo pip install virtualenv
  1. Create a virtual env. This creates a python environment in the mapfishenv folder in your home directory.
virtualenv --no-site-packages ~/mapfishenv
  1. Activate your virtualenv.
. ~/mapfishenv/bin/activate
  1. Clone the repository and initialize your development environment. If this step fails, let me know the error. Maybe I have an error in setup.py.
git clone git@github.com:gocodeboulder/hotspots-mapfish.git
cd hotspots-mapfish
python setup.py develop
  1. Set up your Postgres db. I may put better instructions later. You can see/set the db name in the development.ini. There are some shape files you can import in the import_data folder.

  2. Start the development server. Listens on port 5000. You may want to edit development.ini for your particular development environment. Add it to .gitignore if you do this and plan to push some changes.

paster serve --reload development.ini

Note: You have to have the virtualenv activated for the paster script to work. The virtualenv stores all your Python libraries necessary for the app to work.

Check out the Mapfish documentation and Pylons documentation.

Why:

This is meant to be a back end for whatever front end we come up with. We can use whatever front end. It comes by default with the ExtJS, OpenLayers, GeoExt JavaScript libraries.