Skip to content

Participa Rubí - Implementation of the Decidim platform for l'Ajuntament de Rubí

Notifications You must be signed in to change notification settings

ajrubi/participa-rubi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

151c859 · Sep 27, 2023
Nov 3, 2022
Mar 31, 2022
Sep 27, 2023
Jul 3, 2022
Apr 27, 2023
Jan 12, 2018
Jan 12, 2018
Feb 22, 2018
Jan 12, 2018
Jan 12, 2018
Feb 22, 2018
Jun 28, 2022
Jun 17, 2022
Feb 22, 2018
Feb 16, 2021
Jun 17, 2022
Jan 12, 2018
Sep 21, 2023
Sep 21, 2023
Jun 28, 2022
Sep 7, 2022
Feb 15, 2018
Jun 28, 2022
Mar 31, 2022
Feb 15, 2018
Jan 12, 2018
Jul 1, 2022
Jul 1, 2022
Mar 31, 2022

Repository files navigation

Participa Rubí

Citizen Participation and Open Government application.

This is the open-source repository for decidim_rubi, based on Decidim.

Getting started

bin/setup

Setting up the application

You will need to do some steps before having the app working properly once you've deployed it:

  1. Open a Rails console in the server: bundle exec rails console
  2. Create a System Admin user:
user = Decidim::System::Admin.new(email: <email>, password: <password>, password_confirmation: <password>)
user.save!
  1. Visit <your app url>/system and login with your system admin credentials
  2. Create a new organization. Check the locales you want to use for that organization, and select a default locale.
  3. Set the correct default host for the organization, otherwise the app will not work properly. Note that you need to include any subdomain you might be using.
  4. Fill the rest of the form and submit it.

There are some tasks that need to be run periodically for the platform to work:

  • decidim:metrics:all Once a day
  • decidim:open_data:export Once a day

You're good to go!

Update Decidim

To update the Decidim installation on this project, first we update Gemfile dependencies, then we call the Decidim upgrade script and then we apply migrations (if any)

  • bundle update decidim decidim-dev
  • bin/rails decidim:upgrade
  • bin/rails db:migrate

Rubí Customization

All of these items need to be tested / adapted everytime a new update is applied.

  • The Decidim primary color has been modified
  • Fixed login error texts in Spanish
  • Replace all "survey" occurrences for "Questionari de participació" in the texts
  • Added a custom Authorization Handler that uses the Rubí API
  • Added a different error message when the DNI is not found in the custom Authorization Handler. See: app/views/ws_authorization/_form.html.erb
  • Participatory Process screen does not longer show Process Groups. See: app/enhancers/participatory_processes_controller_enhancer.rb and config/application.rb
  • Participatory Process Groups are now listed in the menu bar. See config/initializers/decidim.rb and config/application.rb.

About

Participa Rubí - Implementation of the Decidim platform for l'Ajuntament de Rubí

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages