How aadhyarao04/internhub works
InternHub is a role-based internship and career platform: students discover opportunities, apply, and use career-preparation tools; companies publish internships and manage applicants; administrators oversee platform activity. The client routes these experiences through an API service to a server organized around feature routes, controllers, and domain services. AI capabilities include career guidance, knowledge-grounded answers, recommendations, interview simulation, and roadmaps. The graph reflects sampled imports and calls; unsampled features are represented by their existing directories, and the client-to-server HTTP relationship is shown as unverified.
Main entry points: api.js HTTP client · App.jsx Role-based routes · app.js API application · ragService.js Knowledge-grounded answers
Components 24
Web client
- Role-based routes
client/src/App.jsx - Sign-in and session
client/src/context/AuthContext.jsx - Student workspace
client/src/pages/student - Company workspace
client/src/pages/company - Opportunity discovery
client/src/pages/public - Administration
client/src/pages/admin - HTTP client
client/src/services/api.js
API layer
- API application
server/src/app.js - Student endpoints
server/src/routes/student.routes.js - Company endpoints
server/src/routes/company.routes.js - Other feature endpoints
server/src/routes
Marketplace operations
- Application handlers
server/src/controllers/application.controller.js - Application lifecycle
server/src/services/application.service.js - Marketplace services
server/src/services
Career intelligence
- AI request handlers
server/src/controllers/ai.controller.js - Career AI capabilities
server/src/ai - Internship matching
server/src/ai/services/recommendationEngine.js - Knowledge-grounded answers
server/src/ai/rag/ragService.js - Embedding generation
server/src/ai/embeddings/embeddingService.js
Persistence and services
- MongoDB models
server/src/models - Notification service
server/src/services/notification.service.js - Knowledge documents
server/src/models/KnowledgeDocument.js
Other components
- Students, companies, admins
- Google embedding API
Connections 29
- Students, companies, admins → Role-based routes: use platform
- Role-based routes → Opportunity discovery: routes to
client/src/App.jsx - Role-based routes → Student workspace: routes to
client/src/App.jsx - Role-based routes → Company workspace: routes to
client/src/App.jsx - Role-based routes → Administration: routes to
client/src/App.jsx - Students, companies, admins → Sign-in and session: authenticate
- Sign-in and session → HTTP client: calls
client/src/context/AuthContext.jsx - Student workspace → HTTP client: calls
- Company workspace → HTTP client: calls
- Opportunity discovery → HTTP client: calls
- Administration → HTTP client: calls
- HTTP client → API application: sends API requests
- API application → Student endpoints: mounts
server/src/app.js - API application → Company endpoints: mounts
server/src/app.js - API application → Other feature endpoints: mounts
server/src/app.js - Student endpoints → Application handlers: dispatches applications
server/src/routes/student.routes.js - Company endpoints → Application handlers: dispatches applications
server/src/routes/company.routes.js - Application handlers → Application lifecycle: delegates to
server/src/controllers/application.controller.js - Application lifecycle → Notification service: creates notifications
server/src/services/application.service.js - Application lifecycle → MongoDB models: uses domain models
server/src/services/application.service.js - Student endpoints → Marketplace services: dispatches profile actions
server/src/routes/student.routes.js - AI request handlers → Career AI capabilities: dispatches AI tasks
server/src/controllers/ai.controller.js - AI request handlers → Internship matching: requests matches
server/src/controllers/ai.controller.js - AI request handlers → Knowledge-grounded answers: requests answers
server/src/controllers/ai.controller.js - Internship matching → MongoDB models: reads student and internship data
server/src/ai/services/recommendationEngine.js - Knowledge-grounded answers → Knowledge documents: reads documents
server/src/ai/rag/ragService.js - Knowledge-grounded answers → Embedding generation: generates and compares vectors
server/src/ai/rag/ragService.js - Knowledge-grounded answers → Career AI capabilities: uses text generation
server/src/ai/rag/ragService.js - Embedding generation → Google embedding API: requests embeddings
server/src/ai/embeddings/embeddingService.js