healthsites / hcid-watchkeeper

A security alerts platform for iMMAP
Other
0 stars 1 forks source link

Welcome to the Watchkeeper code base!

Status

These badges reflect the current status of our development branch:

Tests status:

Coverage status:

Development status:

License

Code: Free BSD License

Out intention is to foster wide spread usage of the data and the code that we provide. Please use this code and data in the interests of humanity and not for nefarious purposes.

Installation

Check out the source

First checkout out the source tree:

git clone git://github.com/kartoza/watchkeeper.git

Instructions for deployment

You need to have http://docker.io and http://www.fig.sh/ installed first.

Note you need at least docker 1.5 - use the installation notes on the official docker page to get it set up.

Please read instructions in deployment/README-docker.md for more information.

Instructions for developers

Install dependencies

OSX Specific notes:

All platforms:

mkdir /tmp/media
mkdir /tmp/static
virtualenv venv
source venv/bin/activate
pip install -r REQUIREMENTS.txt

Create your dev profile

cd django_project/core/settings
cp dev_timlinux.py dev_${USER}.py

Now edit dev_<your username> setting your database connection details as needed. We assume you have created a postgres (with postgis extentions) database somewhere that you can use for your development work. See http://postgis.net/install/ for details on doing that.

Running migrate, collect static, and development server

Prepare your database and static resources by doing this:

virtualenv venv
source venv/bin/activate
cd django_project
python manage.py migrate --settings=core.settings.dev_${USER}
python manage.py collectstatic --noinput --settings=core.settings.dev_${USER}
python manage.py runserver --settings=core.settings.dev_${USER}
python manage.py createsuperuser --settings=core.settings.dev_${USER}