GeoKey is a platform for participatory mapping that is currently developed at Extreme Citizen Science Research Group at University College London.
-
Update your system
sudo apt-get update && sudo apt-get upgrade
-
Install Postgres and PostGIS (we follow the official guides)
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt wheezy-pgdg main" >> /etc/apt/sources.list' wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get install postgresql-9.4-postgis-2.1 postgresql-contrib postgresql-server-dev-9.4
-
Setup all other dependencies
sudo apt-get install python-pip python-virtualenv python-dev libjpeg-dev
-
Create the user
postgres=# CREATE USER django WITH PASSWORD 'django123';
-
Create the database
postgres=# CREATE DATABASE geokey OWNER django;
-
Install the extensions on database geokey
geokey=# CREATE EXTENSION postgis; geokey=# CREATE EXTENSION hstore;
Setting up GeoKey
-
Clone the repository (you should use your own fork)
git clone https://github.com/ExCiteS/geokey.git
-
Install the package
cd geokey pip install -e .
-
Copy the directory
local_settings.example
tolocal_settings
cp -r local_settings.example local_settings
- Inside
local_settings
opensettings.py
in a text editor and add your database settings:
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'geokey',
'USER': 'django',
'PASSWORD': 'django123',
'HOST': 'localhost',
'PORT': '',
}
}
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
-
Migrate the database
python manage.py migrate
-
Add yourself as super user. You can use the same email and password to log into the system later.
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000
python manage.py test
GeoKey was built using some amazing open-source technology. We would like to thank all contributors to these projects: