How arka2518/campusconnect-a-smart-platform-for-student-mentorship-resource-exchange-between-peers works
CampusConnect is a student community platform spanning mentorship, peer resource exchange, and accommodation matching. The visible runtime workflow is sign-in and profile hydration in the React app, followed by resource discovery/listing and reservation or order interactions through the API to backend modules. Accommodation and mentorship are prominent product areas, but the README and sampled sources do not establish live backend APIs for them; they are represented as frontend capabilities. The graph limits connections to relationships visible in excerpts or explicit documentation; several backend internals are included without speculative call edges.
Main entry points: App.tsx Campus app · app.ts HTTP API app · resources.controller.ts Resource controller · auth.service.ts Identity service
Components 25
Student experience
- Campus app
src/App.tsx - Mentors and housing
src/components - Sample campus data
src/data/mockData.ts
Identity and API
- Auth API client
src/api/authApi.ts - Sign-in UI
src/components/LoginModal.tsx - Identity service
backend/src/modules/auth/auth.service.ts - Auth middleware
backend/src/middleware/auth.middleware.ts
Resource exchange
- Resource experience
src/components - Resource API client
src/api/resourcesApi.ts - Orders API client
src/api/ordersApi.ts - Resource routes
backend/src/modules/resources/resources.routes.ts - Resource controller
backend/src/modules/resources/resources.controller.ts - Resource service
backend/src/modules/resources/resources.service.ts - Fair pricing
backend/src/modules/resources/pricing.service.ts - Order routes
backend/src/modules/orders/orders.routes.ts - Order controller
backend/src/modules/orders/orders.controller.ts - Order service
backend/src/modules/orders/orders.service.ts
Backend runtime
- HTTP API app
backend/src/app.ts - Auth routes
backend/src/modules/auth/auth.routes.ts - Auth controller
backend/src/modules/auth/auth.controller.ts - Runtime configuration
backend/src/config/env.ts
Persistence and media
- PostgreSQL access
backend/src/config/db.ts - Image storage
backend/src/services/storage.service.ts
Other components
- Student
- Supabase Auth and Storage
Connections 16
- Student → Campus app: uses
- Campus app → Auth API client: fetches profile
src/App.tsx - Campus app → Orders API client: loads cart
src/App.tsx - Campus app → Mentors and housing: presents
src/App.tsx - Campus app → Resource API client: uses
src/App.tsx - HTTP API app → Auth routes: mounts
backend/src/app.ts - HTTP API app → Resource routes: mounts
backend/src/app.ts - HTTP API app → Order routes: mounts
backend/src/app.ts - Resource controller → Resource service: calls
backend/src/modules/resources/resources.controller.ts - Resource controller → Fair pricing: estimates prices
backend/src/modules/resources/resources.controller.ts - Resource controller → Image storage: uploads images
backend/src/modules/resources/resources.controller.ts - Auth middleware → Identity service: verifies identity
backend/src/middleware/auth.middleware.ts - Identity service → Supabase Auth and Storage: verifies tokens
backend/src/modules/auth/auth.service.ts - Image storage → Supabase Auth and Storage: stores images
backend/src/services/storage.service.ts - HTTP API app → PostgreSQL access: checks health
backend/src/app.ts - PostgreSQL access → Runtime configuration: reads settings
backend/src/config/db.ts