Rezora
A controlled digital voting platform with eligibility checks, campaign administration and database-enforced one-vote-per-category rules.

Overview
Rezora is a digital voting platform built for the Affinity Student Living Gala Awards. It provides verified ballot submission for eligible student residents and administrative tools for residences, campaigns, voting categories, nominees and voter enrolment.
The problem
Residence awards voting needs accessible participation while preventing duplicate ballots and protecting election integrity. Live totals could also influence public voting behaviour, so campaign statistics must remain separate from public nominee data.
The solution
I developed a role-based Next.js application for voters and administrators. Voting eligibility is checked by account verification and residence assignment, while a compound MongoDB unique index enforces one ballot per voter, campaign and category even under concurrent submissions.
My contributions
Built the Next.js application, Better Auth roles, voter eligibility, campaign and nominee management, ballot submission, residence-category rules, Excel and CSV enrolment, administrator statistics, audit records, migration and integrity scripts, and Cloudinary/Nodemailer integrations.
Architecture & engineering
Rezora uses a server-oriented Next.js architecture with App Router route handlers and dedicated campaign and voting services. Better Auth provides the actor context, Zod validates requests, and Mongoose persists campaign, residence, category, nominee, voter and ballot records in MongoDB. Public responses exclude live administrator-only statistics.
Challenges & decisions
Repeated and concurrent ballot submissions required a database-level guarantee, not only frontend or service checks. A compound unique index on voter, campaign and category protects the rule. Campaign lifecycle states, residence eligibility and category assignment add further boundaries, while historical voter data required migration and deduplication tooling.
Outcomes & lessons
Built a complete voting workflow with role-based access, residence-based category eligibility, campaign controls, database-enforced ballot uniqueness, restricted statistics, voter imports, audit records and data-integrity tooling.
System flow
- 01Voter or administrator interface
- 02Better Auth session
- 03Role and eligibility checks
- 04Zod validation
- 05Voting and campaign services
- 06Mongoose and MongoDB
- 07Unique ballot index
- 08Restricted statistics