Skip to main content

PU Selection

A voting platform for PU Myeik’s King, Queen, Prince and Princess selection, with public ballots and judge scoring.

Event
King, Queen, Prince and Princess selection
Setting
Campus event at PU Myeik
Voting
Public ballots and judge scoring
Peak visitors
2,500+
Platform
Web, hosted on Vercel
PU Selection on a laptop and two phones: the home page with candidate photos and a results banner, and an archive card for a past King

Overview

A web platform that streamlines standout student selection across majors: transparent voting, judge workflows, reusable event rooms, and archives that stay reserved for institutional memory, all tuned for high-traffic open nights.

PU Selection digitizes a longstanding campus tradition: elevating students across majors into ceremonial roles. The product has to feel festive for attendees while remaining strict for auditors. Every vote and judge score needs a paper trail without slowing the show.

I wanted a paper trail for every vote.

What the platform does

  • Role-based voting

    Separate flows for public ballots and judge scoring, so weighting stays explicit and auditable.

  • Media pipeline

    UploadThing-backed storage for candidate imagery: fast uploads, predictable URLs, and admin-friendly handling.

  • Rounds and control

    Admin tooling to open and close rounds, align the event schedule, and keep the floor on script.

  • Rooms and archive

    Reusable room templates for recurring events, plus archive reservation so history stays organized.

What had to land for opening night

Engineered for burst traffic during live voting: static-friendly delivery, a disciplined client cache, and operator tooling that does not fight the clock.

  • Peak traffic

    Built for 2,500+ visitors at peak during voting windows without turning the UI into a bottleneck.

  • Separate access by role

    Clerk-authenticated surfaces with clear separation between voters, judges, and operators.

  • Validated data

    Zod-validated inputs end to end, with Prisma and MongoDB for resilient document-style workloads.

  • Instant round changes

    TanStack Query for snappy client cache behavior where every round change must feel instant.

  • Candidate media

    UploadThing integration for candidate media, with predictable delivery on Vercel’s edge footprint.

How it’s built

Next.js anchors the experience, Clerk gates privileged routes, Prisma speaks to MongoDB with type-safe models, and Zod guards every mutation. TanStack Query keeps the UI responsive as rounds advance, UploadThing covers rich media, and Vercel hosts the whole stack at the edge.

Screens and flows

Candidate profile previews, voting, and result tracking.

  • Phone mockups of PU Selection showing the secret-code vote dialog and the home page’s results banner
  • Home page with a strip of candidate photos, a banner announcing results, and candidate cards listing major, age, height and weight
  • Vote dialog over a candidate’s photos, asking for a secret code and noting that the vote is irreversible
  • Admin dashboard with current results, round toggles, secret key upload, judge keys, the candidate list and archives
  • Candidate profile with a photo, major, age, height, weight, a short bio and hobbies
  • Results page showing the selected King, Queen, Prince and Princess with their photos
  • Archive page of selected students from a past year, shown as photo cards with name and title

Built with

  • TypeScript
  • Next.js
  • Zod
  • Prisma
  • MongoDB
  • Clerk
  • UploadThing
  • TanStack Query
  • shadcn/ui
  • Vercel