How ganesh-4731/hackxlerate works
Campus Portal is a role-based academic-progress system. Students review academic records, engagement, risk and placement readiness, and can request faculty help; faculty monitor students and respond; administrators review institution-wide analytics and manage users, settings and segments. The React workspaces call a FastAPI API, which exposes role-specific routers over PostgreSQL-backed models and analytics services. The graph preserves README capabilities even where their implementation was not sampled; links involving unsampled router internals are omitted or marked unverified.
Main entry points: main.py FastAPI application · student_data.py Student data queries · client.ts API client · App.tsx Role workspaces
Components 27
Web portal
- Role workspaces
frontend/src/App.tsx - Session state
frontend/src/auth/AuthContext.tsx - API client
frontend/src/api/client.ts - Shared UI
frontend/src/components/ui.tsx - Student workspace
frontend/src/pages/student - Faculty workspace
frontend/src/pages/faculty - Admin workspace
frontend/src/pages/admin - Intervention plans
frontend/src/components/InterventionsManager.tsx
API and access
- FastAPI application
backend/app/main.py - Authentication and roles
backend/app/core/security.py - Login and session routes
backend/app/routers/auth.py - Student endpoints
backend/app/routers/student.py - Faculty endpoints
backend/app/routers/faculty.py - Admin endpoints
backend/app/routers/admin.py - Analytics endpoints
backend/app/routers/analytics.py - Support endpoints
backend/app/routers/interventions.py
Academic records
- Student data queries
backend/app/services/student_data.py - GPA and results
backend/app/services/results.py
Analytics and support
- Academic risk rules
backend/app/services/academic_risk.py - Placement readiness
backend/app/services/placement_readiness.py - Placement risk
backend/app/services/placement_risk.py - Success score
backend/app/services/success_score.py - Chat assistant
backend/app/services/chat_assistant.py
Persistence
- Academic records
backend/app/models/academic.py - Engagement and identity
backend/app/models - Relational database
backend/app/db.py
Other components
- Portal users
Connections 36
- Portal users → Role workspaces: use workspaces
frontend/src/App.tsx - Role workspaces → Student workspace: routes students
frontend/src/App.tsx - Role workspaces → Faculty workspace: routes faculty
frontend/src/App.tsx - Role workspaces → Admin workspace: routes admins
frontend/src/App.tsx - Role workspaces → Session state: provides session
- Session state → API client: requests auth
frontend/src/auth/AuthContext.tsx - Student workspace → API client: requests data
frontend/src/pages/student/Dashboard.tsx - Faculty workspace → API client: requests data
frontend/src/pages/faculty/StudentDetail.tsx - Admin workspace → API client: requests data
frontend/src/pages/admin/Dashboard.tsx - Intervention plans → API client: updates plans
frontend/src/components/InterventionsManager.tsx - Student workspace → Shared UI: renders components
frontend/src/pages/student/Dashboard.tsx - API client → FastAPI application: calls API
- FastAPI application → Login and session routes: registers routes
backend/app/main.py - FastAPI application → Student endpoints: registers routes
backend/app/main.py - FastAPI application → Faculty endpoints: registers routes
backend/app/main.py - FastAPI application → Admin endpoints: registers routes
backend/app/main.py - FastAPI application → Analytics endpoints: registers routes
backend/app/main.py - FastAPI application → Support endpoints: registers routes
backend/app/main.py - Login and session routes → Authentication and roles: uses security
backend/app/routers/auth.py - Faculty endpoints → Student data queries: queries student data
backend/app/routers/faculty.py - Faculty endpoints → GPA and results: uses results
backend/app/routers/faculty.py - Student data queries → Academic records: queries records
backend/app/services/student_data.py - GPA and results → Academic records: builds results
- Academic risk rules → Student data queries: uses student data
backend/app/services/academic_risk.py - Academic risk rules → Engagement and identity: reads domain records
backend/app/services/academic_risk.py - Placement readiness → Engagement and identity: reads student records
backend/app/services/placement_readiness.py - Placement risk → Placement readiness: uses readiness
backend/app/services/placement_risk.py - Placement risk → Student data queries: uses student data
backend/app/services/placement_risk.py - Success score → Student data queries: uses student data
backend/app/services/success_score.py - Chat assistant → Academic risk rules: uses risk rules
backend/app/services/chat_assistant.py - Chat assistant → Placement readiness: uses readiness
backend/app/services/chat_assistant.py - Chat assistant → Placement risk: uses placement risk
backend/app/services/chat_assistant.py - Chat assistant → Success score: uses success score
backend/app/services/chat_assistant.py - Student data queries → Relational database: reads records
- Academic records → Relational database: maps tables
backend/app/models/academic.py - Engagement and identity → Relational database: maps tables
backend/app/models/academic.py