node generate-keys.js # one-time — creates encryption keys
node generate-tokens.js 30 # generate 30 voter tokens
node build-ballot.js # build the ballot fileor
npm keys
node generate-tokens.js <NUMBER-OF-VOTERS>
npm run build- Send
ballot.htmlto each voter - Send each voter one token from the output above
Voters open ballot.html → paste token → rank → copy code → send via WhatsApp
node reader.js # interactive — paste codes, type "results"
node reader.js --results # just show the tally (not required)./clear.sh # wipes votes and tokens, keeps keys