How navadeep-munjam/centre-for-career-planning-and-services-portal works
This is a student, alumni, and career-services job portal. Its main workflow is finding and managing opportunities: students use the frontend to browse jobs and track applications, while CCPS professionals manage postings and review analytics. Authentication, referrals, resume generation, and alumni discussions are distinct supporting workflows. The backend routes requests to controllers, which operate on MongoDB-backed models; authentication also sends email, and discussion uploads can use Cloudinary. Several frontend pages and backend subsystems are documented or visible in the tree but were not sampled, so their connections are shown only where documented or marked unverified.
Main entry points: server.js HTTP server · auth.controller.js Authentication · App.jsx Portal application · thread.routes.js Discussion routes
Components 31
Portal experience
- Portal application
frontend/src/App.jsx - Auth context
frontend/src/context/AuthContext.jsx - App context
frontend/src/context/AppContext.jsx - Job and student pages
frontend/src/pages/Dashboard.jsx - Analytics dashboard
frontend/src/pages/AnalyticsDashboard.jsx - Referral workflows
frontend/src/pages/Referrals.jsx - Resume builder
frontend/src/pages/ResumeBuilder.jsx - Discussion forum
frontend/src/pages/DiscussionForum.jsx
Identity and access
- Auth API hooks
frontend/src/api/useLogin.js - Auth routes
backend/routes/auth.routes.js - Authentication
backend/controllers/auth.controller.js - User records
backend/models/user.model.js - Route protection
backend/middleware/auth.middleware.js
Jobs and applications
- Job operations
backend/controllers/jobs.controllers.js - Student profiles
backend/controllers/studentview.js - Job postings
backend/models/jobPosting.model.js - Placement analytics
backend/controllers/stats.controller.js - Analytics records
backend/models/stats.model.js
Community and resumes
- Referral operations
backend/controllers/referal.controller.js - Referral records
backend/models/Referal.model.js - Thread components
frontend/src/components/Thread.jsx - Discussion routes
backend/routes/thread.routes.js - Discussion operations
backend/controllers/thread.controller.js - Threads and comments
backend/models/thread.model.js - PDF generation
backend/utils/generatePDF.js
Backend services
- HTTP server
backend/server.js - Job and student routes
backend/routes/router.js - MongoDB
- Email delivery
backend/utils/emails.js - Cloudinary uploads
backend/config/cloudinary.js
Other components
- Students and staff
Connections 32
- Students and staff → Portal application: use portal
README.md - Portal application → Auth context: uses context
frontend/src/main.jsx - Portal application → App context: uses context
frontend/src/main.jsx - Students and staff → Job and student pages: find opportunities
README.md - Students and staff → Analytics dashboard: review metrics
README.md - Students and staff → Referral workflows: request referrals
README.md - Students and staff → Resume builder: build resume
README.md - Students and staff → Discussion forum: join discussions
README.md - Auth context → Auth API hooks: supports auth
- Auth API hooks → Auth routes: sends requests
- HTTP server → Auth routes: mounts routes
backend/server.js - Auth routes → Authentication: dispatches to
backend/routes/auth.routes.js - Authentication → User records: reads and writes
backend/controllers/auth.controller.js - Authentication → Email delivery: sends email
backend/controllers/auth.controller.js - Authentication → Route protection: issues tokens
backend/controllers/auth.controller.js - Route protection → User records: loads user
backend/middleware/auth.middleware.js - HTTP server → Job and student routes: mounts routes
backend/server.js - Job and student routes → Job operations: dispatches to
backend/routes/router.js - Job and student routes → Student profiles: dispatches to
backend/routes/router.js - Job operations → Job postings: reads and writes
backend/controllers/jobs.controllers.js - HTTP server → Placement analytics: mounts stats routes
backend/server.js - Placement analytics → Analytics records: uses model
backend/controllers/stats.controller.js - HTTP server → Discussion routes: mounts routes
backend/server.js - Discussion routes → Discussion operations: dispatches to
backend/routes/thread.routes.js - Discussion routes → Route protection: protects routes
backend/routes/thread.routes.js - Discussion operations → Threads and comments: reads and writes
backend/controllers/thread.controller.js - Discussion operations → Cloudinary uploads: uploads files
backend/controllers/thread.controller.js - HTTP server → Referral operations: mounts referral routes
backend/server.js - Referral operations → Referral records: reads and writes
backend/controllers/referal.controller.js - HTTP server → MongoDB: connects database
backend/server.js - Resume builder → PDF generation: requests PDF
- Thread components → Discussion forum: renders threads