Skip to content

Decidim Barcelona - Direct and participatory democracy web platform based on Decidim framework

License

Notifications You must be signed in to change notification settings

AjuntamentdeBarcelona/decidim-barcelona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decidim-barcelona logo

decidim-barcelona


Citizen Participation and Open Government Application.

[CI] Lint [CI] Test [CI] Test Census SMS [CI] Test Stats Code Climate

This is the opensource code repository for "decidim-barcelona", based on Decidim.

Development environment setup

You can setup everything with Docker & Docker compose, run:

docker-compose build
docker-compose run --rm app bundle exec rake db:create db:schema:load db:seed
docker-compose up

Available tasks

Notifications removal

You can remove old notifications by running the notifications:remove_old task. You can specify the date until you want to preserve notifications and the date from which you will remove them. By default it will delete all the notifications from 2017-01-01 older than 1 year if no params are provided.

For example, this one will remove all the notifications from 2023-11-12 to 2024-01-01:

bundle exec rake notifications:destroy_old["2024-01-01","2023-11-12"]

Update 2024 Participatory budget proposals to fix missing translations

The proposals inside the 2024 participatory budget, sometimes, are created without the translations of the copy_id generated using the Term Customizer module.

This rake task will update the content of the proposals that have not translated the content and save them with the correct translation.

You can call this tasks for the two languages being used in the participatory process (Catalan and Spanish):

bundle exec rake proposals_budget_2024_translations:update_ca_translations

License

Code published under AFFERO GPL v3 (see LICENSE-AGPLv3.txt)

Code of conduct

See CODE_OF_CONDUCT.md

Create your own app

If you want to make your own instance of Decidim, do not fork us, just go to Decidim.