How satyakarma1/event-ignite-zone works
Hackathon Hub is a VIT-focused site for discovering hackathons and coordinating student participation. Visitors browse listings and event details; authenticated students complete onboarding, manage profiles, suggest events, and organize or join teams. Administrators manage hackathons, teams, profiles, and exports. The sampled code shows route-to-function calls, team server-function authorization, and Supabase access; several route implementations and function modules were not sampled, so their internal relationships are left unspecified.
Main entry points: hackathons.functions.ts Hackathon functions · teams.functions.ts Team functions · admin.tsx Admin console · index.tsx Home page
Components 23
Hackathon discovery
- Home page
src/routes/index.tsx - Hackathon listings
src/routes/hackathons/index.tsx - Event details
src/routes/hackathons/$id.tsx - Hackathon functions
src/lib/hackathons.functions.ts - Hackathon card
src/components/HackathonCard.tsx
Identity and access
- Sign-in
src/routes/auth.tsx - Authenticated route guard
src/routes/_authenticated/route.tsx - Function auth middleware
src/integrations/supabase/auth-middleware.ts - Server authorization
src/lib/authz.server.ts
Student participation
- Profile onboarding
src/routes/_authenticated/onboarding.tsx - Student profile
src/routes/_authenticated/u/$regNo.tsx - Profile functions
src/lib/profiles.functions.ts - Student dashboard
src/routes/_authenticated/dashboard.tsx - Event suggestions
src/routes/_authenticated/suggest.tsx - Team management
src/routes/_authenticated/teams/$id.tsx - Create team dialog
src/components/CreateTeamDialog.tsx - Team functions
src/lib/teams.functions.ts
Administration
- Admin console
src/routes/_authenticated/admin.tsx - Admin exports
src/lib/exports.functions.ts
Backend services
- Browser Supabase client
src/integrations/supabase/client.ts - Service-role client
src/integrations/supabase/client.server.ts - Supabase
Other components
- Visitor
Connections 25
- Visitor → Home page: browses
src/routes/index.tsx - Home page → Hackathon functions: loads events
src/routes/index.tsx - Home page → Profile functions: loads organizer
src/routes/index.tsx - Home page → Hackathon card: renders cards
src/routes/index.tsx - Hackathon listings → Hackathon functions: loads listings
src/routes/hackathons/index.tsx - Hackathon listings → Hackathon card: renders cards
src/routes/hackathons/index.tsx - Sign-in → Browser Supabase client: uses client
src/routes/auth.tsx - Authenticated route guard → Browser Supabase client: checks session
src/routes/_authenticated/route.tsx - Hackathon functions → Function auth middleware: uses for protected calls
src/lib/hackathons.functions.ts - Profile functions → Function auth middleware: uses for protected calls
src/lib/profiles.functions.ts - Team functions → Function auth middleware: uses for protected calls
src/lib/teams.functions.ts - Team functions → Server authorization: checks administrator
src/lib/teams.functions.ts - Hackathon functions → Server authorization: checks administrator
src/lib/hackathons.functions.ts - Admin console → Hackathon functions: manages events
src/routes/_authenticated/admin.tsx - Admin console → Team functions: manages teams
src/routes/_authenticated/admin.tsx - Admin console → Profile functions: manages profiles
src/routes/_authenticated/admin.tsx - Admin console → Admin exports: requests exports
src/routes/_authenticated/admin.tsx - Team management → Team functions: uses team actions
src/routes/_authenticated/teams/$id.tsx - Create team dialog → Team functions: creates team
src/components/CreateTeamDialog.tsx - Hackathon functions → Supabase: queries data
src/lib/hackathons.functions.ts - Team functions → Supabase: reads and writes
src/lib/teams.functions.ts - Function auth middleware → Supabase: validates claims
src/integrations/supabase/auth-middleware.ts - Server authorization → Service-role client: checks site owner
src/lib/authz.server.ts - Service-role client → Supabase: connects as service role
src/integrations/supabase/client.server.ts - Browser Supabase client → Supabase: connects
src/integrations/supabase/client.ts