Context
CODES runs hackathons, talks and workshops every school year. Sign-ups, attendance and certificates were handled by hand, and every year a new set of officers inherits whatever the last set used.
Codevents gives the society a platform that the next set of officers can take over each year and reuse for every event.
Problem
New officers take over each school year and often lose access to the previous system.
Officers needed to hand over access without changing code. The app also had to prevent duplicate registrations and check-ins using someone else’s ticket.
What it does
Students
Sign in with a school Google account, sign up solo or as a team, get a QR ticket, and download a certificate after attending.
Officers
Create events, open and close registration, scan tickets at the door, pick winners and export attendee lists.
Owners
The adviser or president adds and removes officers, so access passes from one year’s officers to the next.
Teams
One student creates a team and gets a 6-character invite code. If the captain leaves, the role passes to the next member.
Engineering
The browser never touches the database
Firestore rules deny everything. All reads and writes go through the server, which checks the session cookie first.
One stored status
Draft, open, closed or cancelled is stored. “Happening now”, “Awaiting results” and “Completed” are worked out from the dates, and unit tested.
Tickets that can’t be guessed
Each registration has a secret token in its QR. Scanning the same ticket twice says “already checked in”.
Runs without a Firebase project
Local development uses the Auth and Firestore emulators with seeded demo events.
Major decisions
How access is handed down
- Chose
- Two roles, Owner and Officer, managed in the app. The old owner adds the new president.
- Over
- Hard-coded admin emails.
- Because
- The outgoing officers need to transfer access themselves.
Who can sign in
- Chose
- Google sign-in limited to the school domain, checked on the server.
- Over
- Open sign-up with email and name duplicate checks.
- Because
- The school account identifies each student. The record id limits that student to one registration per event.
Waitlists
- Chose
- Optional capacity, no waitlist, in v1.
- Over
- A waitlist with promotions.
- Because
- Registration closes when capacity is reached. The society doesn’t yet need the notifications a waitlist would require.
Try it
The live demo and the source code.