Files
grecia/docs/es
Javi Martín cf6d9ce753 Add Ruby version to Gemfile
Since Bundler 2.4.19, including in Ruby 3.2.3, it's possible to define
the Ruby version in the Gemfile by indicating which file contains the
version [1].

There are at least two practical cases where this is an advantage.

First, people using RVM in development will no longer accidentally run
the application using the wrong Ruby version (which, before these
changes, might happen if they switch to a branch using a different Ruby
version and forget to run `rvm use` or exit the current folder and enter
it again) because they will get an error when trying to do so.

Second, people using services like Heroku no longer need to modify the
Gemfile.

The disadvantage is that, now, every time we update the Ruby version, we
have to remember to run `bundle` so our `Gemfile.lock` gets the new
version.

[1] https://github.com/rubygems/rubygems/releases/tag/bundler-v2.4.19
2025-01-09 17:14:42 +01:00
..
2025-01-09 17:14:42 +01:00
2023-07-12 15:36:49 +02:00
2024-08-19 16:04:38 +02:00

Logotipo de CONSUL DEMOCRACY

CONSUL DEMOCRACY

Aplicación de Participación Ciudadana y Gobierno Abierto

Web CONSUL DEMOCRACY Project

Puedes acceder a la página principal del proyecto en http://consuldemocracy.org donde puedes encontrar documentación sobre el uso de la plataforma, videos y enlaces al espacio de la comunidad.

Configuración para desarrollo y tests

NOTA: para unas instrucciones más detalladas, consulta la documentación de instalación local.

Prerrequisitos: tener instalado git, Ruby 3.2.5, CMake, pkg-config, Node.js 18.20.3, ImageMagick y PostgreSQL (9.5 o superior).

Nota: Es posible que ejecutar bin/setup, como se indica a continuación, falle si has configurado un nombre de usuario y contraseña para PostgreSQL. Si es así, edita las líneas que contienen username: y password: (añadiendo tus credenciales) en el fichero config/database.yml y ejecuta bin/setup de nuevo.

git clone https://github.com/consuldemocracy/consuldemocracy.git
cd consuldemocracy
bin/setup
bin/rake db:dev_seed

Para ejecutar la aplicación en local:

bin/rails s

Para ejecutar los tests:

bin/rspec

Nota: ejecutar todos los tests en tu máquina puede tardar más de una hora, por lo que recomendamos encarecidamente que configures un sistema de Integración Continua para ejecutarlos utilizando varios trabajos en paralelo cada vez que abras o modifiques una PR (si usas GitHub Actions o GitLab CI, esto ya está configurado en .github/workflows/tests.yml y .gitlab-ci.yml) y cuando trabajes en tu máquina ejecutes solamente los tests relacionados con tu desarrollo actual. Al configurar la aplicación por primera vez, recomendamos que ejecutes al menos un test en spec/models/ y un test en spec/system/ para comprobar que tu máquina está configurada para ejecutar los tests correctamente.

Puedes usar el usuario administrador por defecto del fichero seeds:

user: admin@consul.dev pass: 12345678

Pero para ciertas acciones, como apoyar, necesitarás un usuario verificado, el fichero seeds proporciona uno:

user: verified@consul.dev pass: 12345678

Licencia

El código de este proyecto está publicado bajo la licencia AFFERO GPL v3 (ver LICENSE-AGPLv3.txt)

Contribuciones

Ver fichero CONTRIBUTING_ES.md

Desarrollo en local con Docker

Puedes leer la guía en https://consul_docs.gitbooks.io/docs/content/es/getting_started/docker.html