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:
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)
restart database with command: sudo service postgresql restart
First you need to have RVM installed in your machine.
Then you need to have installed bundler.
gem install bundler
bundle install
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