Skip to content

terslang/condor

Folders and files

NameName
Last commit message
Last commit date
Jun 29, 2024
Jun 26, 2024
Jun 29, 2024
Jul 1, 2024
Jul 1, 2024
Jul 1, 2024
Jun 26, 2024
Jul 1, 2024
Jul 1, 2024
Jul 1, 2024
Jun 26, 2024
Jun 29, 2024
Jun 29, 2024
Jul 1, 2024
Jun 26, 2024
Jun 26, 2024

Repository files navigation

condor

Condorcet Voting Engine

First Time Setup

run sql/condordb.sql and create a sqlite3 db in db/condordb

sqlite3 db/condordb < sql/condordb.sql

add users: In the following example, a user with the email "admin@example.org" and password "password123" is added:

sqlite3 db/condordb
> INSERT INTO user(email, password) VALUES ('admin@example.org', 'ef92b778bafe771e89245b89ecbc08a44a4e166c06659911881f383d4473e94f');

password is a simple sha256 hashed password. It can be generated using the following command:

echo -n "password123" | sha256sum

Building and Running

cd condor
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
make -C build -j$(nproc)
cd ..
treefrog -e dev

Navigate to localhost:8800/Election or localhost:8800/Ballot after creating an election and adding some options

Screenshots

image

condor-screenshot

Database Design

condor