How prajwal-33-hp/careerhub-guide works
CareerHub is a job and internship portal for students, recruiters, and administrators. Its principal journey is discovering opportunities, applying, and tracking applications; recruiter and admin dashboards support job management, applicant review, and recruiter verification. The frontend also exposes career-planning tools, learning content, messaging, and video interviews. The README says authentication is wired end-to-end, while most other frontend data still comes from mock data despite corresponding backend APIs. Connections below reflect README statements and shown imports/routes; unsampled page-to-API calls are not assumed.
Main entry points: AppRoutes.jsx Role-based routing · server.js Express API · api.js HTTP client · authRoutes.js Auth endpoints
Components 28
Frontend experiences
- React application
client/src/main.jsx - Role-based routing
client/src/routes/AppRoutes.jsx - Job discovery
client/src/pages/Jobs.jsx - Student workspace
client/src/pages/student/Applications.jsx - Recruiter workspace
client/src/pages/recruiter/RecruiterOnboarding.jsx - Admin workspace
client/src/pages/admin/RecruiterApplications.jsx - AI career tools
client/src/pages/student/AICareerSuite.jsx - Video interviews
client/src/pages/interview/VideoInterviewRoom.jsx - Authentication UI
client/src/pages/Login.jsx - HTTP client
client/src/services/api.js
API workflows
- Auth endpoints
server/routes/authRoutes.js - Job endpoints
server/routes/jobRoutes.js - Company endpoints
server/routes/companyRoutes.js - AI endpoints
server/routes/aiRoutes.js - Account workflows
server/controllers/authController.js - Recruiter verification
server/controllers/recruiterVerificationController.js - AI workflows
server/controllers/aiController.js
Domain data
- User records
server/models/User.js - Applications
server/models/Application.js - Job records
server/models/Job.js - Company records
server/models/Company.js
Runtime services
- Express API
server/server.js - AI service
server/services/aiService.js - JWT authorization
server/middleware/auth.js - Email delivery
server/services/emailService.js - Realtime messaging
server/utils/socket.js
Other components
- Portal user
- MongoDB
Connections 32
- Portal user → React application: uses
README.md - React application → Role-based routing: renders routes
client/src/main.jsx - Role-based routing → Job discovery: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Student workspace: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Recruiter workspace: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Admin workspace: routes to
client/src/routes/AppRoutes.jsx - Role-based routing → Video interviews: routes to
client/src/routes/AppRoutes.jsx - Portal user → Authentication UI: registers or logs in
README.md - Authentication UI → HTTP client: uses API
- HTTP client → Express API: requests
README.md - Express API → Auth endpoints: mounts
server/server.js - Express API → Job endpoints: mounts
server/server.js - Express API → Company endpoints: mounts
server/server.js - Express API → AI endpoints: mounts
server/server.js - Auth endpoints → Account workflows: dispatches
server/routes/authRoutes.js - Auth endpoints → JWT authorization: protects endpoints
server/routes/authRoutes.js - Company endpoints → Recruiter verification: dispatches verification
- AI endpoints → AI workflows: dispatches
server/routes/aiRoutes.js - AI workflows → AI service: uses
server/controllers/aiController.js - Account workflows → User records: reads and updates
server/controllers/authController.js - Account workflows → Email delivery: sends account email
server/controllers/authController.js - JWT authorization → User records: loads user
server/middleware/auth.js - JWT authorization → Company records: checks membership
server/middleware/auth.js - Portal user → AI career tools: uses career tools
README.md - Portal user → Student workspace: tracks applications
README.md - Portal user → Recruiter workspace: manages hiring
README.md - Job discovery → HTTP client: uses mock data today
README.md - Student workspace → HTTP client: backend integration pending
README.md - MongoDB → Job records: stores
- MongoDB → Applications: stores
- MongoDB → Company records: stores
- Express API → Realtime messaging: initializes
server/server.js