Skip to content

ciudadanointeligente/partidopublico

Repository files navigation

Deploy to Heroku

Build Status Code Climate Coverage Status

partidopublico

is a ruby on rails app for achieving transparency of political parties, funded by UNDEF papu_rails is developed by Fundación Ciudadano Inteligente in collaboration with Chile Transparente.

developed in a linux ruby postgresql environment, see Gemfile for additional requirements

To setup an environment for running the papu_rails app following steps are needed:

  • ruby 2.3.0
  • rails 4.2.6
  • postgresql:(instrucions for ubuntu systems)
    • connect to database: ( in a shell prompt: sudo su - postgresql, then: psql(first time without password))

      • \qset passwordwith sql command: alter role postgres with password 'a';

      • default encoding must be UTF8, follow steps from this gist if needed

    • udate database config file pg_hba.conf (to find its location type: sudo find / -name hb_pga.config)

      • and change # Database administrative login by Unix domain socket from peer to md5
    • restart database with command: sudo service postgresql restart

Installation

RVM

First you need to have RVM installed in your machine.

Bundler

Then you need to have installed bundler.

gem install bundler

The rest of the gems

bundle install

Testing

We have found that it is the safest to test against PostgreSQL, so the first thing you need to do is get postgres running.

Our default testing configurations is as follow:

host: 127.0.0.1
user: postgres
password: a
database_name: papu_test
psql -c 'create database papu_test;' -U postgres --host=127.0.0.1 --password

About

Transparencia en partidos políticos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published