Coder Social home page Coder Social logo

participa2's Introduction

participa2

Build Coverage Maintainability

Citizen Participation and Open Government application.

This is the open-source repository for participa2, a web application based on Decidim. Decidim is a framework for participatory democracy, you can find more about it at its documentation page.

Note that whereas decidim is a library, participa2 is a final application that uses Decidim. More specifically, participa2 is a Rails application, whereas decidim is a rubygem that provides a set of Rails Engines to the application using it.

On top of decidim's default functionality, participa2 adds some extra functionality implemented as decidim components. These custom components live inside the participa2 repo and are the following:

  • Census Connector: Basic connection to a census of people that belong to the organization.

  • Crowdfundings: Crowdfunding campaings for the democractic activity that takes places inside the organization.

  • Gravity Forms: Form management interface to the Gravity Forms Wordpress Plugin.

  • Votings: Votings interface to custom secure external voting systems.

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.

You're good to go!

Deploy

bundle exec cap staging systemd:hutch:setup
bundle exec cap staging systemd:puma:setup
bundle exec cap staging deploy

participa2's People

Contributors

deivid-rodriguez avatar dependabot[bot] avatar leio10 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

participa2's Issues

Improve revoting handling

Currently, when a vote is emited again, sets its vote state to pending. This could be confusing, since there is a confirmed vote in the ballot box. We have many options here:

  • Leave it as is
  • Don't set the vote as pending if it is already confirmed
  • Add a confirmed-pending state
  • Change the status field to a confirmed_at date field
  • Store one vote for each voting emission

Users timezone management

Related to address scope. Should be used for activities start and ending hours when different from main timezone (and show main timezone small below).

Data migration

  • users
  • - verifications
  • - paper_trail (?)
  • elections
  • - votes
  • collaborations
  • - payments

Should we seed staging on every deploy?

Currently the seed process is very slow and makes consecutive deploys fail.

I was thinking that we could pg_dump a brand new seeded DB, and then pg_restore on deployment, but then I realized that seeds in decidim don't lead to a known fixed state, but instead seed random data so I'm not sure reseeding actually buys us much, since the final state will be "random" anyways. Should we instead leave staging data untouched?

Upgrade ruby version to 2.5.1

This needs some coordination for deployment (right?). But it'd be nice to get this up to date for speed, security and all that stuff :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.