# decidim-dife Free Open-Source participatory democracy, citizen participation and open government for cities and organizations This is the open-source repository for decidim-dife, based on [Decidim](https://github.com/decidim/decidim). ## 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: ```ruby user = Decidim::System::Admin.new(email: , password: , password_confirmation: ) user.save! ``` 3. Visit `/system` and login with your system admin credentials 4. Create a new organization. Check the locales you want to use for that organization, and select a default locale. 5. 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. 6. Fill the rest of the form and submit it. You're good to go! ## Setup The local set-up for the application is straigth forward, as the application is fully dockerized. In order to boot the project you may need the following: - Docker access to gitlab (to fetch the image used by docker-compose). Alternatively, you may need to go to the docker folder and run : ```bash ./build_development.sh ./build_test.sh ``` and after wards to update the image names in the docker-compose file. - A plain DB dump from production to use "real data" P.S. Please pay attention to the language dection service that has it's own image that can be build from [Repo](https://git.fpfis.eu/future-of-europe/digit-cofe-libraries/digit-cofe-language-preference) P.P.S. You may need to configure your settings within the application for which you need to create System::Admin user described above, then access http://your_host/system interface with the set credentials to perform additional settings.