GithubHelp home page GithubHelp logo

mihaineagu / catpol-declaratii Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code4romania/asset-declarations

0.0 1.0 0.0 451 KB

Crowd sourcing implementation of Moonsheep platform for Romanian asset declarations.

Dockerfile 0.30% Python 87.56% CSS 0.57% HTML 11.58%

catpol-declaratii's Introduction

Catalog politic - Declaratii de avere GitHub contributors GitHub last commit License: MPL 2.0

code for romania twitter code for romania facebook

  • MAKING PUBLIC INFORMATION TRULY PUBLIC
  • aggregate data on the higher echelons of elected officials
  • data on activity while serving in each of the elected positions held
  • details about criminal legal proceeding or past convictions
  • data from asset declarations, including a net worth estimation

See the project live

Currently, in Romania, public information on elected officials is spread on a multitude of media, in a multitude of formats and requires a priori knowledge of the sources where data resides, making it hard, if not impossible for a regular citizen to make sense of the data.

Furthermore, no comprehensive analysis of data on elected officials can be attempted, as most of it is not digitised, hence not in an open format.

Catalog Politic is powered by the desire to centralise all public information on elected representatives and lower the information cost necessary for citizens, making public information truly public. For this end we are digitising hundreds of thousands of asset declarations, scrapping dozens of official websites and manually collecting data where no automation is possible.

Citizens, who want to find out more about their representatives, but lack the time, energy and know-how to find all the relevant data will gain access to in-depth information in a friendly and easy to digest format.

The platform will help journalists, watchdogs and researchers identify and verify information on elected officials. The data provided will offer an unprecedented starting point for in-depth analysis.

Catalog Politic - Declaratii de avere - aims to automate the process of parsing and extracting information from asset declarations of Romanian politicians and public figures, by providing a user friendly platform for volunteers to extract and map information to a fixed datamodel. The implementation is based on Moonsheep framework.

Built with | Repos and projects | Deployment | Contributing | Feedback | License | About Code4Ro

Built With

Django
Moonsheep
PyBossa
Bootstrap

Programming languages

Python 3.5+
Please follow the Python style guide.

Platforms

Political Catalogue - Asset Declaration is a web application.

Frontend framework

Django

Package managers

Pip

Database technology & provider

This remains currently undecided.

Repos and projects

Moonsheep on GitHub
PyBossa on GitHub

Deployment

Installation process

  • Clone this repo: git clone [email protected]:code4romania/catpol-declaratii.git
  • Open the directory where you have cloned the repo (cd catpol-declaratii)
  • Optionally, you can create a virtual environment named "venv": python3 -m venv venv and then activate it: source venv/bin/activate
  • pip install -r requirements-dev.txt
  • export DJANGO_SETTINGS_MODULE=project_template.settings.dev
  • python manage.py migrate
  • python manage.py runserver

Using Dockerfile:

  • Install docker
  • Clone this repo: git clone [email protected]:code4romania/catpol-declaratii.git
  • Open the directory where you have cloned the repo (cd catpol-declaratii)
  • Run the following command to create a Docker image for the project docker build -t catpol
  • Run the following command to run the Docker image docker run -p 8000 catpol
  • Show the container id running the catpol image docker ps
  • Inspect the container to get the host port docker inspect <container_id>, you should see something like:
            "Ports": {
                "8000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "32769"
                    }
                ]
            },
  • Connect to specified port on localhost and enjoy the solution

Contributing

If you would like to contribute to one of our repositories, first identify the scale of what you would like to contribute. If it is small (grammar/spelling or a bug fix) feel free to start working on a fix. If you are submitting a feature or substantial code contribution, please discuss it with the team and ensure it follows the product roadmap.

Our collaboration model is described here.

Get familiar with some basic coding guidelines.

Debugging

As you develop this app, you will surely add / remove / change database models (Django Models).
In order for your local server to acknowledge these changes, you will need to migrate your new structure.
During the development stage, while you're still testing things out and you don't care about the data in your local sqlite database, the following quick hack will update your models and clean the test database data:

rm  project_template/migrations/*
rm db.sqlite3
python manage.py makemigrations
python manage.py migrate --run-syncdb

Feedback

  • Request a new feature on GitHub.
  • Vote for popular feature requests.
  • File a bug in GitHub Issues.
  • Email us with other feedback [email protected]

License

This project is licensed under the MPL 2.0 License - see the LICENSE.md file for details

About Code4Ro

Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of over 500 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro-bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at [email protected].

Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread accross 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.

catpol-declaratii's People

Contributors

aniri avatar avataru avatar calincrist avatar catileptic avatar danielacraciun avatar danniel avatar katte-13 avatar kovaxg avatar mihaighidoveanu avatar paulbricman avatar radu-diaconescu13 avatar raducstefanescu avatar tsundokul avatar tudoramariei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.