How iamvivekdatta/careerconnect-v2 works
CareerConnect is a role-based network for students, alumni, and administrators. Users enter through public authentication, then use the protected community app to build profiles, connect, share posts, message, and find jobs or training; achievements and recommendations support ongoing engagement. Admins govern users, content, opportunities, and platform health. The client communicates with an Express API backed by MongoDB. The graph preserves documented feature areas, while some unsampled module wiring is omitted or marked unverified.
Main entry points: main.tsx Client entry and routes · server.ts Express API routing · opportunityRoutes.ts Opportunity routes · achievementRoutes.ts Achievement routes
Components 25
Client application
- Client entry and routes
client/src/main.tsx - Authentication pages
client/src/pages/public - Auth state
client/src/store/useAuthStore.ts
Community features
- Feed and posts
client/src/pages/FeedPage.tsx - Profiles
client/src/pages/ProfilePage.tsx - Connections
client/src/pages/ConnectionsPage.tsx - Alumni directory
client/src/pages/AlumniDirectoryPage.tsx - Messaging UI
client/src/pages/MessagesPage.tsx - Realtime client
client/src/providers/SocketProvider.tsx
Opportunities and growth
- Opportunity discovery
client/src/pages/OpportunitiesPage.tsx - Training recommendations
client/src/components/organisms/TrainingOpportunitiesCarousel.tsx - Achievements and badges
client/src/pages/AchievementsPage.tsx
API and persistence
- Express API routing
server/src/server.ts - Authentication guard
server/src/middlewares/authMiddleware.ts - Opportunity routes
server/src/routes/opportunityRoutes.ts - Achievement routes
server/src/routes/achievementRoutes.ts - Achievement logic
server/src/controllers/achievementController.ts - Messaging logic
server/src/controllers/messagingController.ts - User records
server/src/models/User.ts - MongoDB
Administration
- Admin portal
client/src/pages/admin - Admin governance
server/src/controllers/adminController.ts
Other components
- Students and alumni
- Administrators
- Cloudinary uploads
Connections 30
- Students and alumni → Client entry and routes: use
README.md - Administrators → Client entry and routes: use
README.md - Client entry and routes → Authentication pages: routes to
- Client entry and routes → Feed and posts: routes to
- Client entry and routes → Profiles: routes to
- Client entry and routes → Connections: routes to
- Client entry and routes → Alumni directory: routes to
- Client entry and routes → Messaging UI: routes to
- Client entry and routes → Opportunity discovery: routes to
- Client entry and routes → Achievements and badges: routes to
- Client entry and routes → Admin portal: routes to
- Client entry and routes → Auth state: provides auth state
- Client entry and routes → Express API routing: sends API requests
README.md - Client entry and routes → Realtime client: mounts
client/src/main.tsx - Client entry and routes → Training recommendations: shows recommendations
- Express API routing → Opportunity routes: mounts
server/src/server.ts - Express API routing → Achievement routes: mounts
server/src/server.ts - Express API routing → Authentication guard: uses for protected routes
- Opportunity routes → Authentication guard: guards requests
server/src/routes/opportunityRoutes.ts - Opportunity routes → Admin governance: dispatches approval
server/src/routes/opportunityRoutes.ts - Achievement routes → Authentication guard: guards requests
server/src/routes/achievementRoutes.ts - Achievement routes → Achievement logic: dispatches
server/src/routes/achievementRoutes.ts - Achievement logic → User records: reads and updates
server/src/controllers/achievementController.ts - Achievement logic → MongoDB: persists records
- Messaging logic → MongoDB: reads and writes messages
- Messaging logic → Realtime client: emits conversation events
- Admin portal → Express API routing: requests governance actions
- Admin governance → User records: queries users
server/src/controllers/adminController.ts - Admin governance → MongoDB: queries platform records
- Express API routing → Cloudinary uploads: uploads assets