How gtnethsara/innohack2026-team-draw works
INNOHACK Team Leader Portal manages team authentication, FIFO draw admission, group allocation, and organizer oversight. Team leaders log in, join the queue, complete a group draw, and view allocation status; administrators monitor teams and queue state and control admissions. The React client uses a typed API service with the Express backend, whose store maintains portal state. MongoDB Atlas is the production persistence layer; local development can use JSON storage. The backend routing and storage details are based on the source index and README, not inspected excerpts.
Main entry points: localPortalService.ts Portal API client · DashboardPage.tsx Team dashboard · AdminPage.tsx Admin console · App.tsx Portal routing
Components 18
Portal client
- Portal routing
src/App.tsx - Portal API client
src/services/localPortalService.ts
Team experience
- Team login
src/pages/LoginPage.tsx - Team dashboard
src/pages/DashboardPage.tsx - Group draw wheel
src/components/SpinningWheel.tsx - Allocation certificate
src/components/AllocationCertificate.tsx - Group capacity view
src/components/GroupProgressPanel.tsx
Organizer operations
- Admin console
src/pages/AdminPage.tsx - CSV exports
src/utils/exportCsv.ts - PDF reports
src/utils/exportPdf.ts
API and domain
- Portal data types
src/types/portal.ts - Express API
server/index.ts - Auth and sessions
server/auth.ts - Queue and allocation state
server/store.ts - Live event stream
server/index.ts
Persistence
- MongoDB / JSON store
server/store.ts
Other components
- Team leader
- Organizer
Connections 22
- Team leader → Portal routing: opens portal
README.md - Organizer → Portal routing: opens portal
README.md - Portal routing → Team login: routes to
src/App.tsx - Portal routing → Team dashboard: routes to
src/App.tsx - Portal routing → Admin console: routes to
src/App.tsx - Team login → Portal API client: authenticates through
src/pages/LoginPage.tsx - Team dashboard → Portal API client: fetches portal state
src/pages/DashboardPage.tsx - Admin console → Portal API client: manages portal
src/pages/AdminPage.tsx - Team dashboard → Group draw wheel: renders
src/pages/DashboardPage.tsx - Team dashboard → Group capacity view: renders
src/pages/DashboardPage.tsx - Admin console → Group capacity view: renders
src/pages/AdminPage.tsx - Team dashboard → Allocation certificate: offers allocation proof
src/pages/DashboardPage.tsx - Admin console → CSV exports: exports snapshot
src/pages/AdminPage.tsx - Admin console → PDF reports: exports snapshot
src/pages/AdminPage.tsx - Portal API client → Express API: calls API routes
- Express API → Auth and sessions: uses
server/index.ts - Express API → Queue and allocation state: dispatches state operations
server/index.ts - Queue and allocation state → MongoDB / JSON store: reads and writes
README.md - Portal API client → Live event stream: subscribes to stream
src/services/localPortalService.ts - Express API → Live event stream: serves live updates
README.md - Portal API client → Portal data types: uses typed contracts
src/services/localPortalService.ts - Queue and allocation state → Portal data types: uses domain types
server/store.ts