![decidim.barcelona logo] (https://raw.githubusercontent.com/AjuntamentdeBarcelona/decidimbcn/master/app/assets/images/decidim-logo.png)
Citizen Participation and Open Government Application
This is the opensource code repository for "decidim.barcelona", based on Consul, developed by the Madrid City government.
The application backend is written in the Ruby language using the Ruby on Rails framework.
Frontend tools used include SCSS over Foundation for the styles.
Docker is the recommended development environment as it guarantees library parity, as well as a predictable an easy to set up development environment.
docker-compose build
docker-compose run --rm app db:create
docker-compose run --rm app db:setup SEED=true
docker-compose up
Prerequisites: install git, ImageMagick, Ruby 2.2.3, bundler gem, redis, ghostscript and PostgreSQL (>=9.4).
git clone https://github.com/AjuntamentdeBarcelona/decidimbcn.git
cd decidimbcn
bundle install
cp config/database.yml.example config/database.yml
cp config/secrets.yml.example config/secrets.yml
rake db:create
bin/rake db:setup
bin/rake db:dev_seed
RAILS_ENV=test bin/rake db:setup
Run the app locally:
bin/rails s
Prerequisites for testing: install PhantomJS >= 2.0
Run the tests with:
bin/rspec
Code published under AFFERO GPL v3 (see LICENSE-AGPLv3.txt)
See CONTRIBUTING.md