Condorcet Voting Engine
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 "[email protected]" and password "password123" is added:
sqlite3 db/condordb
> INSERT INTO user(email, password) VALUES ('[email protected]', 'ef92b778bafe771e89245b89ecbc08a44a4e166c06659911881f383d4473e94f');
password
is a simple sha256 hashed password. It can be generated using the following command:
echo -n "password123" | sha256sum
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