Team Finder: University Event & Team Matchmaking Platform
A full-stack university hackathon platform and team formation engine. Built as a first web prototype in 2024 and re-architected in 2026 with rule-based skill matchmaking, atomic concurrency control, and real-time Socket.IO notifications.
Verified results and performance
Project details
- Role
- Full-Stack & Systems Engineer (Solo Project)
- Timeline
- 2024 to 2026
- Tracks
- software, devops
Technologies and skills
Abstract
Team Finder addresses a chronic friction point across university hackathons and engineering competitions: students struggle to assemble balanced teams across fragmented group chats, while organizers lack visibility into solo applicants. Originally built in 2024 as my first full-stack MERN application, the platform introduced dual-role authentication and candidate discovery. In 2026, I re-architected the entire system from first principles to resolve real-world scaling and concurrency bottlenecks. The enhanced v2 platform introduces a transparent rule-based skill compatibility engine, concurrency-guarded atomic team membership workflows using MongoDB $expr queries to eliminate race conditions on the final roster seat, a real-time event-driven notification pipeline via Socket.IO, an interactive OpenAPI / Swagger specification, and an Alpine Nginx micro-footprint container deployment (<10MB RAM) governed by automated GitHub Actions CI/CD.
The Genesis (v1, 2024): Solving the Hackathon Teaming Dilemma
Every university student who has entered a hackathon, robotics competition, or engineering design challenge has faced the exact same bottleneck:
"I want to participate, but I don't have a team."
or
"We have three members for our project, but we urgently need a backend systems engineer."
During my engineering studies at university, I saw countless students posting across disconnected WhatsApp groups, Discord channels, and Telegram chats trying to recruit teammates. Meanwhile, student branches like IEEE and Computer Science societies struggled to keep track of participating teams and solo candidates looking for groups.
I tackled this as my first full-stack web project in 2024: building Team Finder, a centralized platform connecting students looking for teams, teams looking for talent, and organizers hosting competitions.
[ Frontend: React 18 + Vite + Tailwind CSS ]
│
▼ (REST API / JSON / JWT)
[ Backend: Node.js + Express.js Server ]
│
▼ (Mongoose ODM)
[ Database: MongoDB (Atlas / Docker) ]
Team Finder initial landing page (v1, 2024): introducing dual-role entry for students and organizers.
The Architectural Audit: Where v1 Fell Short
While the initial 2024 prototype successfully demonstrated end-to-end functionality, taking a critical engineering lens to the codebase in early 2026 revealed four non-trivial architectural and usability flaws:
| Problem Domain | v1 Prototype Bottleneck | v2 Production Engineering Solution |
|---|---|---|
| Roster Concurrency | Non-atomic team.members.length < maxSize check; vulnerable to race conditions if two applicants apply for the last slot simultaneously. | Atomic MongoDB $expr conditional update queries ($lt: [{$add: [{$size: '$members'}, 1]}, '$maxSize']) preventing oversubscription. |
| Skill Fit Transparency | Hardcoded static "50% Match" placeholder badge on every team card carrying zero informational value. | Real skill-overlap discovery: matches user.skills with team.lookingFor, renders "You match 2 of 3", and highlights matching tags. |
| Notification Flow | No real-time updates; users had to manually reload pages to discover whether their membership request was accepted or declined. | Event-driven WebSocket pipeline with Socket.IO delivering instant alerts and in-app notification persistence. |
| Interface Restraint | Noisy dotted backgrounds, nested cards inside cards, and a persistent "Our Partners" sidebar consuming 20% of the viewport. | Clean DM Sans design token system, sticky app bar with avatar dropdown menu, and mobile bottom tab bar. |
| Testing & CI/CD | 100% manual testing; no containerization; no machine-readable API documentation. | Jest & Supertest integration test suite, multi-stage Docker Compose, OpenAPI 3.0 specification, and GitHub Actions CI. |
Visual Evolution: Feed & Discovery Experience (v1 vs. v2)
Comparing the student entry experience highlights the architectural shift from ad-hoc styling to structured design tokens:
AUDIT SUMMARY:
- Concurrency Vulnerability: HIGH (TOCTOU race on final slot)
- Matchmaking Legitimacy: LOW (Static placeholder percentages)
- UI Information Density: POOR (Distracting partner sidebars & nested cards)
- Observability & Contracts: MISSING (No Swagger spec or automated tests)
v1 Prototype (2024): Off-white dotted background, loud partner sidebar consuming 20% of the viewport, uncalibrated grey text, and floating pill navigation.
v2 Production (2026): Custom DM Sans token system, centered 680px feed, dedicated upcoming deadlines rail, sticky top bar with user profile dropdown, and zero promotional clutter.
v2 System Architecture & Micro-Footprint Infrastructure
In early 2026, I initiated a ground-up re-architecture of Team Finder (team-finder-2026). The primary objective was engineering rigor: eliminating race conditions, containerizing the entire estate, implementing automated integration testing, and formalizing the API surface.
The frontend was packaged in a multi-stage Alpine Linux Nginx container. By leveraging route-based code splitting (React.lazy / Suspense) and gzip compression, the production frontend consumes < 10MB of RAM under full load while serving assets with immutable cache headers.
┌────────────────────────────────────────────────────────┐
│ Client (React 18 + Vite SPA) │
│ Alpine Nginx Container (<10MB RAM) │
└──────────────────────────┬─────────────────────────────┘
│ (HTTP REST / WebSocket)
┌──────────────────────────▼─────────────────────────────┐
│ Backend API (Node 20 + Express.js) │
│ Socket.IO Event Server + Swagger Docs │
└─────────────┬────────────────────────────┬─────────────┘
│ (Mongoose ODM) │ (REST CDN)
┌─────────────▼─────────────┐ ┌────────────▼─────────────┐
│ MongoDB 7.0 │ │ Cloudinary CDN │
│ Replica Set / Database │ │ Event Banners & Media │
└───────────────────────────┘ └──────────────────────────┘
Verified runtime resource footprint: docker stats showing 9.805 MiB memory consumption for the non-root Alpine Nginx runner serving the compiled React 18 production bundle.
Eliminating Race Conditions: Concurrency-Guarded Membership Workflows
In university hackathons with strict team limits (e.g., maximum 4 members per team), accepting team applicants sequentially with naive application-layer checks creates a classic Time-of-Check to Time-of-Use (TOCTOU) race condition.
If a team has 3 members (1 slot left) and two leaders or two concurrent approval requests execute within the same event loop tick, both read length = 3, both pass the check, and both push into the array, oversubscribing the roster to 5 members.
In v2, I replaced naive updates with an atomic conditional $expr query executed directly in MongoDB:
When a team fills its final slot, the system automatically marks the team status as complete and batch-rejects all remaining pending applications for that team. Furthermore, it queries other pending applications made by the accepted student for the same competition and auto-cancels them to prevent dual-team membership conflicts.
// Concurrency-safe atomic approval in teamController.js
const updatedTeam = await Team.findOneAndUpdate(
{
_id: team._id,
$expr: {
$lt: [{ $add: [{ $size: '$members' }, 1] }, '$maxSize'],
},
},
{
$push: {
members: {
user: joinRequest.requester._id,
joinedAt: new Date(),
role: 'member',
},
},
},
{ new: true }
);
if (!updatedTeam) {
throw ApiError.badRequest('Team has reached maximum member capacity');
}
Dynamic Skill-Overlap Discovery & Team Matchmaking
During early prototype exploration in 2024, the interface used static layout badges to model candidate discovery.
In the 2026 production re-architecture, this evolved into a fully functional, transparent skill-overlap discovery and matchmaking engine:
- Declared Team Stack: Team creators specify the exact engineering roles and technologies needed via a
lookingForrequirements array (e.g.,['React', 'Node.js', 'Docker']). - Deterministic Set Intersection: The backend discovery controller computes real-time set intersections between the candidate's verified profile skills and the team's active recruitment criteria.
- Transparent Match Indicators: Instead of ambiguous black-box scores, candidates get clear, actionable compatibility metrics (e.g.,
"You match 2 of 3"). - Visual Skill Highlighting: Matching skills render with high-visibility accent tags (
--accent-soft), while missing requirements remain neutral, providing instant visual feedback on team alignment. - Relevance-Based Ordering: Candidates can sort teams directly by
"Best skill match"(sortBy === 'matchScore', which orders by the number of matched skills).
Visual Evolution: Team Discovery & Skill Overlap (v1 vs. v2)
// Real-time skill-overlap calculation in teamController.js
const userSkills = (req.user?.skills || [])
.map((s) => s.toLowerCase().trim())
.filter(Boolean);
const matchedSkills = [];
const missingSkills = [];
if (userSkills.length > 0 && teamLookingFor.length > 0) {
teamLookingFor.forEach((skill) => {
const norm = skill.toLowerCase().trim();
if (userSkills.some((us) => us === norm || norm.includes(us) || us.includes(norm))) {
matchedSkills.push(skill);
} else {
missingSkills.push(skill);
}
});
}
// Dynamic compatibility summary e.g. "You match 2 of 3", or null if profile skills empty
const matchText = userSkills.length > 0 && teamLookingFor.length > 0
? `You match \${matchedSkills.length} of \${teamLookingFor.length}`
: null;
v1 Prototype (2024): Initial prototype candidate search interface featuring static layout mockups and foundational team listing.
v2 Production (2026): Production skill-overlap engine with real-time match indicators ('You match 2 of 3'), active skill highlighting, and dynamic compatibility sorting.
Real-Time Notification Pipeline via Socket.IO
In v1, team applicants had no visibility into whether their join request had been seen, approved, or rejected without manually refreshing the browser.
v2 introduces a bidirectional event pipeline connecting the Express backend to the React client via Socket.IO:
When an event occurs (e.g., team_member_joined, join_request_received), the server persists a notification record in MongoDB and simultaneously emits an authenticated WebSocket event directly to the recipient's personal socket room (user_\${userId}). The client receives the payload without delay, updating the notification badge and displaying a toast notification.
[ User Action: Leader clicks "Accept" ]
│
▼
[ Team Controller: Atomic DB Update ]
│
▼
[ Notification Service: Persist to MongoDB ]
│
▼
[ Socket.IO Server: emit('notification', payload) to Room user_{id} ]
│
▼
[ Client Listener: Redux notificationSlice appends alert + badge increment ]
Organizer Command Center: Event Lifecycle & Telemetry
Hosting collegiate hackathons involves complex operational constraints: defining registration deadlines, configuring strict team size boundaries (minimum and maximum attendees per team), and filtering eligibility by department or university.
In the 2024 v1 prototype, the organizer interface suffered from severe layout bloat. A persistent 20%-width "Our Partners" sidebar pushed content off-center, nested white-on-white cards obscured hierarchy, and duplicate action buttons confused users during live competitions.
In the 2026 v2 platform, the organizer experience was redesigned from first principles into a focused operational command center:
- Live Registration Telemetry: Real-time counters track attendee registration velocity and open team rosters.
- Explicit Lifecycle Badging: Clear status tags (
Upcoming,Ongoing,Closed) ensure organizers instantly distinguish active competitions from drafts. - Uncluttered Actions: Replaced ambiguous dropdown menus with direct action controls for attendee verification, milestone awards, and event post announcements.
- Relocated Sponsor Visibility: Shifted promotional logos to an understated footer grid, returning 100% of the viewport width to event administration.
Visual Evolution: Organizer Command Center (v1 vs. v2)
v1 Prototype (2024): Nested white cards inside cards, duplicate action buttons, and a distracting 20% width sponsor column.
v2 Production (2026): Clean DM Sans operational view with live registration counters, clear status badging, and streamlined action bars.
Multi-Role Governance: Dedicated System Administration Portal
To scale the platform across multiple universities and faculties, v2 expands beyond basic Student and Organizer logins by introducing a dedicated System Administrator tier with strict server-side role verification and protected route guards (RoleBasedRoute.jsx).
In a distributed university ecosystem, open self-registration without verification leads to chaos, as students can impersonate student branch leaders or publish illegitimate events. The v2 admin portal provides four critical governance levers:
- Organizer Verification Queue: Validates academic institutional domains (e.g., verifying
@uom.lkor@ruh.ac.lkemail domains and official club letters) before granting event creation privileges. - Event Approvals Pipeline: Vets newly drafted hackathons and engineering competitions before they appear in the public student discovery feed.
- University Milestone Recognition: Manages verified university achievement badges and milestone awards issued to winning hackathon teams.
- Global Sponsor Governance: Centralized dashboard to curate and audit authorized corporate partners displayed across the platform footer.
ROLE PERMISSION MATRIX:
┌─────────────────┬───────────┬─────────────┬─────────────┐
│ Capability │ Student │ Organizer │ Admin │
├─────────────────┼───────────┼─────────────┼─────────────┤
│ Discover Teams │ Read │ None │ Read │
│ Create Teams │ Full │ None │ Full │
│ Host Events │ None │ Draft/Self │ Full/Global │
│ Verify Org │ None │ None │ Full │
│ Milestone Awards│ View │ Issue │ Manage │
│ System Telemetry│ None │ None │ Full │
└─────────────────┴───────────┴─────────────┴─────────────┘
v2 Production (2026): Dedicated system administration console with real-time platform telemetry, user role audits, and pending approval queues.
Production Hardening, Automated Testing & OpenAPI Documentation
To elevate Team Finder from a hobby prototype to professional-grade software, v2 introduces three vital engineering standards:
1. Automated Integration Test Suite
Implemented with Jest and Supertest, verifying route authorization, health checks, and capacity assertions in CI:
2. Machine-Readable OpenAPI 3.0 Specification
A 1,430-line openapi.yaml contract with interactive Swagger UI mounted live at /api/v1/docs via swagger-ui-express, allowing API consumers and organizers to inspect parameters, payload models, and error schemas across the platform's REST endpoints.
3. Containerized Orchestration & Defense-in-Depth
- Docker Compose: Orchestrates MongoDB 7.0 with replica set health checks, the Express backend, and the Alpine Nginx frontend.
- Security Middleware:
helmetfor strict Content Security Policies,express-mongo-sanitizeto strip operator injection, andexpress-rate-limitto prevent brute-force attacks on authentication endpoints.
PASS __tests__/health.test.js
✓ GET /health should return 200 and running status (18 ms)
✓ GET /api/v1 should return API metadata and docs link (12 ms)
✓ GET /unknown-route should return 404 with structured error (9 ms)
PASS __tests__/auth.test.js
✓ POST /api/v1/auth/login should reject empty body with 400 (22 ms)
✓ POST /api/v1/auth/login should reject invalid credentials (19 ms)
✓ POST /api/v1/auth/register should validate required fields (16 ms)
✓ GET /api/v1/teams without auth token should return 401 (14 ms)
Engineering Takeaways: Growth Through Iterative Refactoring
Revisiting a first-year project after gaining experience in distributed systems, networking, and security proved to be one of the most rewarding learning experiences of my university career:
- Solve Concurrency at the Data Layer: Trying to prevent race conditions in frontend state or naive Node.js checks is fragile. Pushing constraints into atomic database queries (
$expr) guarantees consistency regardless of traffic spikes. - Design Restraint Over Decoration: Removing cluttered sidebars, nested cards, and arbitrary gradients drastically improved usability. True polish comes from typographic hierarchy, accessible contrast, and predictable spacing.
- Contracts Enable Scale: Writing an OpenAPI specification and automated tests transformed how I reasoned about API surface area, eliminating undocumented quirks and regressions.
- The Power of Code Evolution: Software is never truly finished. Building v1 provided the domain intuition; refactoring it into v2 proved that I could elevate code to production standards.
Discuss this project
Have questions about the architecture or design decisions?