How p-saiprasanth/alumnisphere works
AlumniSphere is a full-stack alumni networking and mentorship platform. Users register or log in, then discover alumni, exchange mentorship requests, message connections, and find or post opportunities; profiles and dashboard analytics support that work, with an admin view for user management. The React pages use service modules to call Express routes and controllers, which read and update MongoDB models. Socket.io supports real-time chat, though its event wiring is not included in the sampled source. Feature-to-service links beyond sampled files follow documented capabilities and the repository tree.
Main entry points: App.jsx Routes and access · server.js Express and Socket server · api.js HTTP client · mentorshipController.js Mentorship workflow
Components 31
Web application
- Routes and access
frontend/src/App.jsx - Session state
frontend/src/context/AuthContext.jsx - Alumni discovery
frontend/src/pages/DiscoveryPage.jsx - Dashboard
frontend/src/pages/DashboardPage.jsx - Mentorship
frontend/src/pages/MentorshipPage.jsx - Messaging
frontend/src/pages/MessagesPage.jsx - Opportunities
frontend/src/pages/OpportunitiesPage.jsx - Profiles
frontend/src/pages/ProfilePage.jsx - Admin panel
frontend/src/pages/AdminPage.jsx - Live connection
frontend/src/context/SocketContext.jsx - HTTP client
frontend/src/services/api.js - User service
frontend/src/services/userService.js - Mentorship service
frontend/src/services/mentorshipService.js - Message service
frontend/src/services/messageService.js - Opportunity service
frontend/src/services/opportunityService.js - Notification service
frontend/src/services/notificationService.js
API and domain
- Express and Socket server
backend/server.js - Authentication
backend/controllers/authController.js - Discovery and analytics
backend/controllers/userController.js - Mentorship workflow
backend/controllers/mentorshipController.js - Chat workflow
backend/controllers/messageController.js - Opportunity workflow
backend/controllers/opportunityController.js - JWT protection
backend/middleware/auth.js - Socket event handling
backend/socket.js
Persistent and live state
- MongoDB
backend/config/db.js - User records
backend/models/User.js - Mentorship records
backend/models/MentorshipRequest.js - Message records
backend/models/Message.js - Opportunity records
backend/models/Opportunity.js - Notification records
backend/models/Notification.js
Other components
- Student / alumni
Connections 42
- Student / alumni → Routes and access: uses
- Routes and access → Session state: provides session
- Routes and access → Alumni discovery: routes to
- Routes and access → Dashboard: routes to
- Routes and access → Mentorship: routes to
- Routes and access → Messaging: routes to
- Routes and access → Opportunities: routes to
- Routes and access → Profiles: routes to
- Routes and access → Admin panel: routes to
- Session state → HTTP client: calls auth endpoints
- Alumni discovery → User service: requests people
- Dashboard → User service: requests stats
- Profiles → User service: requests profiles
- Mentorship → Mentorship service: requests mentorship
- Messaging → Message service: requests messages
- Opportunities → Opportunity service: requests listings
- Messaging → Live connection: uses live chat
- User service → HTTP client: calls
- Mentorship service → HTTP client: calls
- Message service → HTTP client: calls
- Opportunity service → HTTP client: calls
- Notification service → HTTP client: calls
- HTTP client → Express and Socket server: HTTP requests
- Express and Socket server → JWT protection: protects routes
- Express and Socket server → Authentication: dispatches auth
- Express and Socket server → Discovery and analytics: dispatches users
- Express and Socket server → Mentorship workflow: dispatches mentorship
- Express and Socket server → Chat workflow: dispatches messages
- Express and Socket server → Opportunity workflow: dispatches opportunities
- Express and Socket server → Socket event handling: initializes
- Live connection → Socket event handling: Socket.IO events
- Express and Socket server → MongoDB: connects
- Authentication → User records: reads and writes
- Discovery and analytics → User records: queries and updates
- Discovery and analytics → Mentorship records: queries
- Mentorship workflow → Mentorship records: reads and updates
- Mentorship workflow → User records: looks up and connects
- Mentorship workflow → Notification records: creates
- Chat workflow → Message records: reads and writes
- Chat workflow → User records: looks up partners
- Opportunity workflow → Opportunity records: reads and updates
- Opportunity workflow → Notification records: creates