jsquare / hikeplanner

Find a hike you'll like!
GNU General Public License v2.0
1 stars 0 forks source link

hikeplanner

Find a hike you'll like!

Dev Machine Setup

Ubuntu 12.04

This is what we did, and it worked.

Install Python 2.7

Checkout code using Git

Install git and use it to checkout the hikeplanner code

Install system dependencies (GDAL, GEOS, PROJ.4, PostgreSQL, PostGIS)

for us, PostGIS 2.0 did not install properly using just apt-get. To properly install PostGIS 2.0 we needed to add this repository:

in the hikeplanner/ repository root:

Install Python dependencies

in the hikeplanner/ repository root:

Set up PostgreSQL database with PostGIS extension

When PostgreSQL is installed, it creates a user called 'postgres', which is used to access all postgres databases. To create the spatial database, switch to postgres user, create a PostgreSQl database, open it in the psql terminal and add the postgis extension

Then create a database account named postgres. (It must be named postgres so it matches the system user account.) The settings.py in the Django project will need to match the database name, user, and pwd.

Do the django dance

in the hikeplanner/ repository root:

Windows

After about five hours of trying to get the various libraries installed and working together on Windows, we finally figured out a reliable solution:

  1. Install virtualbox on your windows machine and boot it into Ubuntu: VirtualBox + Ubuntu.

    • I got VirtualBox from here
    • I got Ubuntu 12.04 .iso from here
  2. Follow Ubuntu instructions above.