项目作者: autogestion

项目描述 :
Corruption tracker module for Socialhome
高级语言: Python
项目地址: git://github.com/autogestion/sh_ctracker.git
创建时间: 2017-09-26T14:03:24Z
项目社区:https://github.com/autogestion/sh_ctracker

开源协议:BSD 3-Clause "New" or "Revised" License

下载


A federated Corruption Tracker

Corruption tracker module for Socialhome,
based on stand-alone Corruption tracker engine

Corruption tracker lets people to make cases of corruption and professionally unfit of civil servant public and as result track the level of it in public institutions.
Centralized server encountered with the problem, that it is hard to get together journalists, politicians and public organizations, they have different standards and requirements. So in federated version actors will aggregate claims on their own pods with their specific marketing strategy and share results using Diaspora protocol

FB - https://www.facebook.com/activecorruptiontracking/

Quick start

  1. Install prerequisites

    1.1 Intstall Socialhome using sh guides:

    1. http://socialhome.readthedocs.io/en/latest/development.html#development
    2. http://socialhome.readthedocs.io/en/latest/install_guides.html#install-guides

    1.2 Install postgis

    1. sudo apt-get install postgis

    1.3 On db creation, use next flow (or create extension postgis later):

    1. sudo su - postgres
    2. createuser -s -P socialhome # give password 'socialhome'
    3. createdb -O socialhome socialhome
    4. psql
    5. \c socialhome;
    6. create extension postgis;
    7. \q
    8. exit

    1.4 Install ctracker using pip

    1. pip install git+https://github.com/autogestion/sh_ctracker.git
    2. or symlink for development
    3. ln -s /home/.../sh_ctracker/ctracker/ /home/.../env/lib/python3.5/site-packages/ctracker
  2. Configure project

    2.1 Edit .env file to add next values:

    1. -Update DATABASE_URL to next value (replace postgres with postgis):
    2. DATABASE_URL=postgis://socialhome:socialhome@127.0.0.1:5432/socialhome
    3. -Add
    4. SOCIALHOME_HOME_VIEW=ctracker.views.MapPublicStreamView
    5. SOCIALHOME_ADDITIONAL_APPS=django.contrib.gis,ctracker
    6. SOCIALHOME_ADDITIONAL_APPS_URLS=ctracker/,ctracker.urls

    2.2 Run

    1. python manage.py migrate
    2. python manage.py initiate_db
    3. python manage.py createsuperuser # with username 'acts', it will be used for broadcasting claims
    4. python manage.py collectstatic

API docs available on …/api/#/ctracker

Submit a bug

We would like to hear about any bugs or odd behavior that you uncover. Use the issue tracker to open a new item. When describing the issue, we recommend that you discuss the following items:

  • Describe the bug
  • Describe the steps you did to discover the bug
  • What was the expected outcome of the above steps?
  • Please provide screenshots, if applicable