How harsha-2oo8/-clubhouse works
Clubhouse is a campus social-networking product for discovering colleges, clubs, events, projects, and people, with college roles and administration. The main visible flow is a student using the routed web app; the API server exposes domain routes, including project and object-storage operations, and persists domain data in PostgreSQL. The graph preserves those capabilities and the separate upload-storage backends. Source excerpts and the SOURCE INDEX support only some runtime links; unsampled route behavior and frontend-to-API calls are not asserted.
Main entry points: index.ts API router · storage.ts Storage routes · App.tsx Web application · projects.ts Project routes
Components 20
Clubhouse web app
- Web application
artifacts/clubhouse/src/App.tsx - Product pages
artifacts/clubhouse/src/pages
API and domain
- HTTP application
artifacts/api-server/src/app.ts - API router
artifacts/api-server/src/routes/index.ts - Club routes
artifacts/api-server/src/routes/clubs.ts - College routes
artifacts/api-server/src/routes/colleges.ts - College role routes
artifacts/api-server/src/routes/collegeRoles.ts - Event routes
artifacts/api-server/src/routes/events.ts - Project routes
artifacts/api-server/src/routes/projects.ts - Admin routes
artifacts/api-server/src/routes/admin.ts - Storage routes
artifacts/api-server/src/routes/storage.ts
Access and services
- Access policy
artifacts/api-server/src/lib/policy.ts - College permissions
artifacts/api-server/src/lib/collegeRbac.ts - Server configuration
artifacts/api-server/src/lib/config.ts
Data and storage
- Domain schema
lib/db/src/schema/colleges.ts - Object access rules
artifacts/api-server/src/lib/objectAcl.ts - Object storage service
artifacts/api-server/src/lib/objectStorage.ts - Google storage
artifacts/api-server/src/lib/gcsStorage.ts - Supabase storage
artifacts/api-server/src/lib/supabaseStorage.ts
Other components
- Student
Connections 21
- Student → Web application: uses
artifacts/clubhouse/src/App.tsx - Web application → Product pages: routes to
artifacts/clubhouse/src/App.tsx - Web application → HTTP application: API connection
- HTTP application → API router: mounts
artifacts/api-server/src/app.ts - API router → Club routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → College routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → College role routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → Event routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → Project routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → Admin routes: dispatches
artifacts/api-server/src/routes/index.ts - API router → Storage routes: dispatches
artifacts/api-server/src/routes/index.ts - Project routes → Access policy: checks policy
artifacts/api-server/src/routes/projects.ts - Project routes → College permissions: checks permissions
artifacts/api-server/src/routes/projects.ts - Storage routes → Access policy: checks admin
artifacts/api-server/src/routes/storage.ts - Storage routes → Object access rules: checks access
artifacts/api-server/src/routes/storage.ts - Storage routes → Google storage: uses backend
artifacts/api-server/src/routes/storage.ts - Storage routes → Supabase storage: uses backend
artifacts/api-server/src/routes/storage.ts - Object storage service → Object access rules: reads and sets
artifacts/api-server/src/lib/objectStorage.ts - Google storage → Server configuration: reads config
artifacts/api-server/src/lib/gcsStorage.ts - Supabase storage → Server configuration: reads config
artifacts/api-server/src/lib/supabaseStorage.ts - Supabase storage → Google storage: reuses path helpers
artifacts/api-server/src/lib/supabaseStorage.ts