Giter Site home page Giter Site logo

affac-cat / decidim-affac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coditramuntana/decidim-fapac-app

0.0 1.0 2.0 3.2 MB

Decidim for AFFAC

Home Page: https://participa.affac.cat/

Ruby 11.67% JavaScript 0.53% HTML 87.07% SCSS 0.04% CSS 0.55% Dockerfile 0.11% Shell 0.03%
decidim

decidim-affac's Introduction

DECIDIM-FAPAC-APP

Deploying the app

Deploy is located in an external project

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!

The following files should be modified:

  • package.json
  • config/application.rb
  • config/initializers/decidim.rb

Upgrades with clean-app

Documentation in docs/upgrade_apps.md.

decidim-affac's People

Contributors

laurajaime avatar tramuntanal avatar microstudi avatar leusev avatar aitorlb avatar apuertadelaguila avatar elviabth avatar davidcodit avatar victorol1 avatar ivan-mr avatar fblupi avatar hhassig avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Forkers

fblupi platoniq

decidim-affac's Issues

Service listing available templates

  • Create a service/form to obtain templates from the disk, stored in YAML format.
    A template might be organized as follows in the disk:
lib/templates/template-1.yml
lib/templates/template-2.yml
lib/templates/template-1/file1.png

Some service/helper should list all the available templates for their subsequent use in a decidim Form.
For instance:

templates = OrganizationTemplates.all

A template must consist of a single YAML file with optional files referenced in it, the definitive format might change depending on the needs once creating it. Here is a suggestion:

vars:
  organization_title: translated_string
  ref: string
id: template-1
spaces:
  - manifest: consultations
    title: 
      ca: Consulta per %{organization_title}
      es: Consulta para %{organization_title}
    cover: template-1/file1.png

The vars section will be used for fields that need to be presented in #8, then, when submitting the form, all string should be interpolated with the corresponding variables (ie: %{organization_title})

Create new organization from template page

Following #7, we should be able to access to the route /system/templates/new?template=TEMPLATE_ID

  • The new controller should reject access if no template exists
  • Show a view with all vars defined in #9 according to the template. The non-defined mandatory fields to create an organization should be autogenerated
  • Create a command to process the form
  • Create a new organization using the template

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.