https://github.com/autogestion/sh_ctracker
Corruption tracker module for Socialhome
https://github.com/autogestion/sh_ctracker
corruption diaspora django federation gis maps social-network
Last synced: 2 months ago
JSON representation
Corruption tracker module for Socialhome
- Host: GitHub
- URL: https://github.com/autogestion/sh_ctracker
- Owner: autogestion
- License: bsd-3-clause
- Created: 2017-09-26T14:03:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T20:52:08.000Z (over 7 years ago)
- Last Synced: 2025-01-21T16:13:24.084Z (4 months ago)
- Topics: corruption, diaspora, django, federation, gis, maps, social-network
- Language: Python
- Homepage:
- Size: 374 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A federated Corruption Tracker
Corruption tracker module for [Socialhome](https://github.com/jaywink/socialhome),
based on stand-alone [Corruption tracker](https://github.com/autogestion/corruption_tracker) engineCorruption 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 protocolFB - https://www.facebook.com/activecorruptiontracking/
## Quick start
1. Install prerequisites
1.1 Intstall Socialhome using sh guides:
http://socialhome.readthedocs.io/en/latest/development.html#development
http://socialhome.readthedocs.io/en/latest/install_guides.html#install-guides1.2 Install postgis
sudo apt-get install postgis
1.3 On db creation, use next flow (or create extension postgis later):
sudo su - postgres
createuser -s -P socialhome # give password 'socialhome'
createdb -O socialhome socialhome
psql
\c socialhome;
create extension postgis;
\q
exit1.4 Install ctracker using pip
pip install git+https://github.com/autogestion/sh_ctracker.git
or symlink for development
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:
-Update DATABASE_URL to next value (replace postgres with postgis):
DATABASE_URL=postgis://socialhome:[email protected]:5432/socialhome-Add
SOCIALHOME_HOME_VIEW=ctracker.views.MapPublicStreamView
SOCIALHOME_ADDITIONAL_APPS=django.contrib.gis,ctracker
SOCIALHOME_ADDITIONAL_APPS_URLS=ctracker/,ctracker.urls2.2 Run
python manage.py migrate
python manage.py initiate_db
python manage.py createsuperuser # with username 'acts', it will be used for broadcasting claims
python manage.py collectstaticAPI 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](../../issues/) 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