Real-time Quadratic Voting dashboard to encourage mathematically optimal voting in democratic communities.
AGPL-3.0 License
This application is built atop
At a fundamental level, the way in which voting links are generated and sessions are handled is kept simple:
events
table keeps track of open voting events. Each event has a secret_key (uuid)
to manage the event.voters
table keeps track of all voters and their preferences. Each voter has a id (uuid)
that together with the event_uuid (uuid)
represents their unique voting URL.Important files:
# Import schema
pg:psql -f prisma/schema.sql
Setup environment variables. Copy prisma/.env.sample to prisma/.env
and replace DATABASE_URL
with your PostgreSQL DB url.
Run application
# Install dependencies
yarn
# Run application
yarn dev