Code Monkey home page Code Monkey logo

cia's Introduction

Citizen Intelligence Agency

Tracking politicians like bugs. Citizen Intelligence Agency is independent and non-partisan voluntary project.

license Maven Central Jenkins Jenkins tests SonarQube Coverage SonarQube Tech Debt CII Best Practices CodeFactor Codacy Badge Dependency Status

Goal

Visualize political activity in Sweden, present key performance indicators and metadata for the actors on national level.

Still prototype, live demo running at https:/www.hack23.com/cia/.

Using open data from http://data.riksdagen.se/ , http://www.val.se/ and http://data.worldbank.org/ .

Currently the application displays data, metadata and charts for data related to Swedish parliament and government. Covering parliament members, committees, documents, ballots, decisions, ministries, government members and political parties.

Limited functionality proper navigation, descriptions,content, ui and styling are still not in place.

Roadmap

Plan to make it public some time after 2018.04, running Ubuntu 18.04, Postgresql 10.x, JDK10, Spring framework 5.x , Hibernate 6.x, Vaadin 8.x

#Resources

Project documentation http://hack23.github.io/cia/

Project Architecture https://structurizr.com/share/37264#Enterprise

Github source code location https://github.com/Hack23/cia

Build server, jenkins https://www.hack23.com/jenkins/

QA report, sonarqube https://www.hack23.com/sonar/

Repository manager, nexus https://www.hack23.com/nexus/

Parlimentary informatics

https://en.wikipedia.org/wiki/Parliamentary_informatics list many good examples of other projects in the domain around the world.

USA https://www.govtrack.us/

Canada http://OpenParliament.ca

European Union http://www.votewatch.eu/

Sweden http://govdata.se/api

http://riksdagsskolket.se/

http://www.demokratikollen.se

Denmark http://www.hvemstemmerhvad.dk/

Finland http://kansanmuisti.fi/

Norway https://www.holderdeord.no/

UK https://www.theyworkforyou.com/ http://www.publicwhip.org.uk/

Germany http://offenesparlament.de

Italy http://parlamento17.openpolis.it/

France http://mon-depute.fr/

South Korea http://pokr.kr/

Israel https://oknesset.org/

Installing Debian/Ubuntu package

Currently only build a debian package, works with debian and ubuntu 14.04,16.04,16.10

  1. Installing database(postgres) and openjdk
$ sudo apt-get install openjdk-8-jdk postgresql pgadmin3
  1. Installing Oracle JDK 8 on Ubuntu

First you need to add webupd8team Java PPA repository in your system and install Oracle Java 8 using following set of commands.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java9-installer oracle-java8-installer oracle-java8-unlimited-jce-policy
  1. Create empty database

Below description set the default username/password and database name used for development, recommend using custom credentials and update the configuration at /opt/cia/webapps/cia/WEB-INF/database.properties to define your own username/password and database name.

$ sudo su - postgres
$ psql
postgres=# CREATE USER eris WITH password 'discord';
postgres=# CREATE DATABASE cia_dev;
postgres=# GRANT ALL PRIVILEGES ON DATABASE cia_dev to eris;
  1. Modify postgres setting, enable prepared transactions

Edit file "/etc/postgresql/9.6/main/postgresql.conf" set

max_prepared_transactions = 100
  1. Modify postgres setting Edit file "/etc/postgresql/9.6/main/pg_hba.conf" add line
host all all ::1/128 md5
  1. Restart postgres
$ service postgresql restart
  1. Get cia debian package and
$ wget https://oss.sonatype.org/content/repositories/releases/com/hack23/cia/cia-dist-deb/2017.12.24/cia-dist-deb-2017.12.24.deb
  1. Install debian package
$ sudo dpkg -i cia-dist-deb-2017.12.24.deb
  1. Access the server at http://localhost:2323/cia/ .

Application package diagram overview

Package overview diagram Api docs

cia's People

Contributors

pethers avatar codacy-badger avatar

Watchers

James Cloos 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.