Example of a minimal "governance driver" that uses the Metagov Prototype
-
Copy
.env.exampleto a new file.envand set the Loomio API key value. -
In the
metagov-prototypeproject undermetagov, run:sudo python manage.py runserver 80 -
In a separate shell, run
ngrok http 80 -
In this project, run
METAGOV_SERVER=https://<subdomain>.ngrok.io npm start -
Log into Loomio as an admin, and add the ngrok webhook receiver URL that was printed to the console in the previous step.
-
Re-run step 4. Open the poll link and close it early. The vote result should get printed to the console.