Free Open-Source participatory democracy, citizen participation and open government for cities and organizations
This is the open-source repository for test_decidim_app, based on Decidim.
You will need to do some steps before having the app working properly once you've deployed it:
- Start a postgres 15 database. If you have Docker configured, you can simply run
docker compose up
; - There's a
.env
file in the root directory containing appropriate variables for connecting to the Docker database; - Prepare de database:
rails db:create
rails db:migrate
rails db:seed # custom seeds
- Install NPM dependencies:
npm i
; - Enable dev caching:
rails dev:cache
; - Start the server:
rails s
.
You're good to go!
- Access the running app on localhost:3000;
- Access the only published process;
- Access the Proposals tab;
- Click on New proposal (you will have to log in using
user@example.org
anddecidim123456789
); - Create a new proposal and publish it;
- Switch the app locale to a different locale from the one you used to create the proposal;
- Try to toggle between original text and automatically-translated text. It should work fine on the proposal page;
- The proposal should appear on the parent process "overview" page (
The process
tab) as an highlighted proposal; - Try to toggle between original text and automatically-translated text. It should not work here.
Do this after the Reproduce machine translations cache bug section.
- Stop the app;
- Checkout the
cache-accounts-for-machine-translations
branch; - Restart the app and access it on localhost:3000;
- Access the only published process "overview" page;
- The proposal created previously should still be highlighted here;
- Try to toggle between original text and automatically-translated text. It should work fine by now.