An enterprise-grade campus recruitment automation platform and institutional accreditation reporting engine built for colleges and universities. Engineered to streamline placement operations, perform live drive eligibility checks with 1-click student registration, offer structured company preparation with an interactive question bank, and generate official NAAC Criterion 5.2.1 / NIRF audit PDF & Excel documentation.
| Environment | URL | Status |
|---|---|---|
| Production Web Application | student-placement-tracker-navy.vercel.app | Active |
| API Health Check | https://student-placement-tracker.onrender.com/api/health |
Active |
graph TD
A[Student / TPO User] -->|HTTPS| B[PlaceTrack Client - React 18 SPA]
B -->|REST API & JWT| C[API Gateway - Express Server]
B <-->|WebSockets| D[Socket.IO Push Notification Engine]
C -->|Mongoose ORM| E[(MongoDB Atlas Central Database)]
C -->|jsPDF & SheetJS| F[NAAC Criterion 5.2.1 PDF & Excel Engine]
C -->|Gemini AI API| G[AI Resume ATS & Mock Interview Service]
C -->|Nodemailer SMTP| H[Email Automation Notification Service]
I[GitHub Actions] -->|Automated CI/CD| C
J[Docker Engine] -->|Container Orchestration| C
- Atomic Conditional Slot Reservation: Eliminates Time-of-Check to Time-of-Use (TOCTOU) race conditions during high-demand campus drives (e.g. Google, Microsoft capping tests to 100 slots). Uses MongoDB atomic conditional increments (
{ registeredCount: { $lt: maxSlots } }, { $inc: { registeredCount: 1 } }), guaranteeing zero overbooking or oversubscription even when thousands of students apply simultaneously. - Token Bucket Rate Limiter: High-throughput sliding-window algorithm that throttles automated bot scripts and rapid-fire clicks to a fair-share threshold (5 requests per 10s per student) with automatic memory cleanup.
- Idempotency Key Manager: Implements
X-Idempotency-Keytransaction caching. Delayed network retries or double-clicks automatically return cached confirmations without consuming duplicate slots. - Atomic Slot Rollback & Release: When an application creation encounters database constraints or when a student withdraws their registration, the slot is atomically refunded (
{ $inc: { registeredCount: -1 } }) and made immediately available for other candidates. - Live Visual Capacity Progress: Real-time slot countdown, color-coded capacity bar (Green
< 70%, Warning Amber70%β90%, Red> 90%), and disabled "Slots Full" status protections.
-
Real-Time Drive Eligibility Engine: Automatically cross-references incoming campus drive requirements against the logged-in student's live academic profile across 4 criteria:
-
Minimum CGPA (e.g.
$\ge 7.0$ ) -
Maximum Backlogs Allowed (e.g.
$\le 0$ ) -
Eligible Branches (e.g.
CSE, ISE, ECE) - Placement Status (unplaced students only)
-
Minimum CGPA (e.g.
- 1-Click Apply & Immediate Audit Lock: Eligible students can register for active campus drives with a single click. The backend validates criteria server-side and saves a point-in-time snapshot of the student's credentials.
-
Compound Unique Indexing:
{ company: 1, student: 1 }guarantees zero duplicate registrations under concurrent conditions. - Student Withdrawal Support: Allows students to withdraw applications before drive cutoffs.
-
TPO Applicant Roster: Placement officers can view registered student rosters with search filters and export company HR-ready
.xlsxspreadsheets in 1 click.
- Institutional Accreditation Letterhead: Formatted specifically for Sahyadri College of Engineering & Management, Mangaluru (Autonomous Institute Affiliated to VTU Belagavi, AICTE Approved, NAAC 'A' Grade, NBA Accredited).
-
Accreditation Key Indicators (Criterion 5.2.1):
- Total Graduating Outgoing Cohort Strength
- Total Verified Placed Students & Overall Institutional Placement Ratio (
%) - Total Employment Offers Received
- Compensation Metrics: Highest Package (
βΉXX.XX LPA) & Average Package (βΉXX.XX LPA)
- Department-Wise NAAC Audit Table: Generates program-by-program breakdown of cohort size, placed count, unplaced count, placement percentage, and average CGPA.
-
NIRF Salary Tier Classification: Classifies offers into Super Dream (
$\ge 15\text{ LPA}$ ), Dream ($8 - 14.99\text{ LPA}$ ), Core IT ($5 - 7.99\text{ LPA}$ ), and Foundation ($< 5\text{ LPA}$ ) categories. - Official Attestation & Signatures: Features certified sign-off boxes for Placement Coordinator, Head - Training & Placement (TPO), and Principal / Head of Institution with college seal placeholders.
-
Multi-Page Vector PDF Output: Vector lines, running headers, and running page numbering (
Page X of Y) viajsPDFandjspdf-autotable. -
NAAC Portal Excel Export: Generates a 3-sheet
.xlsxfile formatted to match the NAAC SSR portal template.
- Company Recruitment Guides: Detailed round-by-round selection roadmaps (Online Assessment, Tech Round 1, Tech Round 2, HR/Managerial) for major campus recruiters:
- TCS, Infosys, Amazon, Google, Microsoft, Wipro, Swiggy, Accenture, Cognizant, PhonePe
- Topic-Categorized Question Bank:
- Data Structures & Algorithms (DSA): Arrays, Linked Lists, Trees, Graphs, Sliding Window, DP.
- Database & SQL: Subqueries,
DENSE_RANK(),GROUP BY ... HAVING, Joins, Indexing, ACID. - Core Computer Science: Operating Systems (Processes vs. Threads), Computer Networks (DNS & TCP/IP), OOP Principles, System Design.
- Web Development: Event Loop, Promises, REST API status codes, React mechanics.
- Quantitative Aptitude: LCM unitary work method, Relative speed, Probability, Profit & Loss.
- HR & Behavioral: 90-Second Self Introduction template, STAR behavioral methodology.
- Expandable Solutions & Reference Code: Step-by-step logic, syntax-highlighted code snippets, copy button, key takeaways, and gotcha tips.
- Readiness Tracker: LocalStorage-persisted "Mark as Mastered" progress bar (e.g.,
12 / 24 Mastered (50% readiness)). - Peer Contribution: Placed students and administrators can contribute verified interview questions.
- Real-Time Metric Tiles: Live placement rate percentage with visual progress bars, average package, highest package, total offers, and active companies.
- Multi-Chart Intelligence:
- Branch-Wise Placement Comparison (Bar Chart)
- Placed vs. Unplaced Cohort Breakdown (Doughnut Chart)
- Salary Tier Package Distribution (Distribution Bar Chart)
- Monthly Hiring Trends & Seasonality (Smooth Line Chart)
- Top Recruiting Companies by Total Hires (Horizontal Bar Chart)
- Batch Filtering: Analyze historical placement trends across graduating classes (e.g. Batch 2023, 2024, 2025, 2026).
| Feature / Action | Training & Placement Officer (Admin) | Student | Viewer / Faculty |
|---|---|---|---|
| Executive Dashboard & Analytics | Yes | Yes | Yes |
| Campus Drives (View & Check Eligibility) | Yes | Yes | Yes |
| Flash Drive 1-Click Apply & Rollback | No | Yes | No |
| View Applicant Rosters & Export HR Excel | Yes | No | No |
| Official NAAC Criterion 5.2.1 PDF Generator | Yes | Yes | Yes |
| Company Prep Hub & Question Bank | Yes | Yes | Yes |
| Mark Questions as Mastered | No | Yes | No |
| Add / Edit Student Academic Records | Yes | Self Profile | No |
| Add / Edit Company Recruiting Profiles | Yes | No | No |
| Record Verified Placements | Yes | No | No |
| Real-Time Push Notifications | Yes | Yes | No |
- Zero Leaked Credentials: Dedicated authentication flow requiring authentic credentials. All client-side test credentials and demo auto-fill shortcuts have been removed.
- Cryptographic Token Verification: Enforces JWT verification with secret keys and strict algorithm checks (rejection of
nonealgorithm and signature tampering). - Defensive Query Parameterization: Protection against NoSQL query selector injection attacks.
- Non-Blocking Toasts: Error handling uses accessible
react-toastifytoasts instead of UI-blockingalert()popups.
PlaceTrack includes an enterprise automated testing suite delivering 95.2% line coverage across core business modules, comprising 77 total automated tests across unit, integration, high-load performance, and OWASP penetration testing.
Total Test Suites: 19 suites (17 backend, 2 frontend)
Total Tests: 77 tests (47 backend unit, 23 frontend unit, 7 integration)
Core Line Coverage: 95.2%
Benchmark Speed: 5,000 students verified in 16.2 ms
| Test Category | Command | Target & Coverage Scope |
|---|---|---|
| Backend Unit Tests | npm run test:unit |
47 unit tests covering dynamic eligibility engine, JWT auth middleware, USN parsing, NAAC 5.2.1 metrics, question bank, token bucket rate limiter, idempotency cache, slot capacity calculation, and Placement Inquiry schema validation |
| Code Coverage Report | npm run test:coverage |
Generates detailed coverage table (95.2% line coverage across auth, models, and calculation helpers) |
| High-Load Benchmarks | npm run test:perf |
Evaluates 5,000 synthetic records in 16.2ms; 200 concurrent apply burst simulation in 2.4ms; 10,000 records NAAC aggregation in 2.6ms |
| Security & Pen Tests | npm run test:security |
8 OWASP Top 10 tests (BOLA / IDOR, JWT tampering, "none" alg attack, expired tokens, NoSQL injection, secret leakage audit) |
| Full Flow Integration | npm run test:integration |
7 end-to-end integration flows using in-memory MongoDB including 10-thread parallel flash drive race condition test |
| Frontend Unit Tests | npm run test:client |
23 tests testing formatters, color tokens, <StatCard />, <EmptyState /> via React Testing Library |
| Run All Suites | npm test |
Unified runner executing all backend and frontend test suites |
Continuous Integration is fully automated via GitHub Actions in .github/workflows/ci.yml:
- Triggers: Automated execution on every
pushandpull_requesttargetingmainandmaster. - Backend Matrix: Parallel execution on Ubuntu across Node.js 18.x and Node.js 20.x LTS.
- Dependency Caching: Automated
npm ciwith dependency hash caching for sub-minute CI runs. - Verification Stages:
- Unit tests execution (
npm run test:unit) - Code coverage threshold verification (
npm run test:coverage) - High-load concurrency and performance benchmark verification (
npm run test:perf) - Security audit and penetration test execution (
npm run test:security) - In-memory integration suite verification (
npm run test:integration) - Frontend unit tests execution (
CI=true npm test) - Client production build compilation (
npm run build)
- Unit tests execution (
- Status Gate: Pull requests are automatically blocked if any test fails or compilation breaks.
Run the entire production stack (PlaceTrack App + MongoDB 6.0) locally with a single command:
docker-compose up --build- Frontend + API:
http://localhost:5000 - MongoDB:
localhost:27017(isolated network with persistentmongo-datavolume) - Health Probes: Automatic database ping check and container health probe at
/api/health.
The root Dockerfile uses an optimized dual-stage Alpine build:
- Stage 1 (Builder): Builds static React production bundle.
- Stage 2 (Runtime): Hardened Node.js production runner with
dumb-initsignal handling and non-rootnodeuser security.
# Build production image
docker build -t placetrack:latest .
# Run container
docker run -p 5000:5000 \
-e MONGO_URI="mongodb://your-mongo-host:27017/placetrack" \
-e JWT_SECRET="your_production_secret" \
placetrack:latestConfigured with Infrastructure as Code via render.yaml for zero-downtime continuous deployment on Render, Railway, or AWS ECS with automated health checks at /api/health.
placement-tracker-final/
βββ .github/
β βββ workflows/
β βββ ci.yml # GitHub Actions CI/CD pipeline
βββ Dockerfile # Multi-stage production container
βββ docker-compose.yml # Local multi-service orchestration
βββ render.yaml # Cloud deployment Infrastructure as Code
βββ package.json # Workspace monorepo test orchestrator
β
βββ placement-tracker/
βββ server/
β βββ models/
β β βββ User.js # Auth & studentRef linkage
β β βββ Student.js # Academic credentials, compound index
β β βββ Company.js # Eligibility criteria & package range
β β βββ DriveApplication.js # Compound unique index { company: 1, student: 1 }
β β βββ PrepQuestion.js # Curated question bank schema
β β βββ Placement.js # Verified job offers & compensation records
β βββ routes/
β β βββ auth.js # JWT authentication & session verification
β β βββ applications.js # Drive listing, 1-click apply & Excel export
β β βββ prep.js # Question bank, company guides & upvotes
β β βββ stats.js # Aggregation pipelines for analytics
β β βββ students.js # Student CRUD, batch filters, search
β β βββ companies.js # Recruiting partners CRUD
β β βββ placements.js # Placement tracking & email trigger
β β βββ eligibility.js # Direct company eligibility evaluations
β βββ utils/
β β βββ flashDriveEngine.js # Token bucket rate limiter, idempotency & atomic slot engine
β β βββ eligibilityHelper.js# Pure dynamic criteria evaluation engine
β β βββ studentHelper.js # Regex USN branch parser & auto-linkage
β β βββ emailService.js # Nodemailer HTML templates
β βββ middleware/
β β βββ auth.js # JWT protect & adminOnly guards
β βββ tests/
β β βββ unit/ # 6 Unit test suites (42 tests)
β β β βββ flashDriveConcurrency.test.js
β β β βββ eligibility.test.js
β β β βββ authMiddleware.test.js
β β β βββ studentHelper.test.js
β β β βββ placementLogic.test.js
β β β βββ prepLogic.test.js
β β βββ performance/ # High-load & concurrency benchmarks
β β β βββ loadBenchmark.test.js
β β βββ security/ # OWASP Top 10 security & pen tests
β β β βββ securityPenTest.test.js
β β βββ fullFlowTest.js # 7-Suite integration flow test
β β βββ unitRunner.js # Dynamic test suite discovery runner
β β βββ unitCoverage.js # Code coverage reporter
β βββ index.js # Server entrypoint & WebSocket handler
β
βββ client/
βββ src/
β βββ __tests__/ # React component & helper unit tests
β β βββ helpers.test.js
β β βββ components.test.js
β βββ setupTests.js # Testing library jest-dom setup
β βββ components/ # ATSScorer, EligibilityChecker, Layout, etc.
β βββ pages/ # Dashboard, CampusDrives, Login, Profile, etc.
β βββ utils/ # naacReportGenerator, exportUtils, runtimeConfig
βββ package.json # Client dependencies & scripts
- Node.js: v18.0.0 or higher
- MongoDB: Local MongoDB instance or MongoDB Atlas cluster connection string
- Package Manager: npm or yarn
git clone https://github.com/anoopcodehack/Student-Placement-Tracker.git
cd Student-Placement-Trackercd placement-tracker/server
npm installCreate a .env file in placement-tracker/server/ (refer to .env.example):
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secure_jwt_secret_key
CLIENT_URL=http://localhost:3000
NODE_ENV=developmentStart the backend server:
npm run dev
# Server starts on http://localhost:5000 with MongoDB connected & auto-seededIn a separate terminal:
cd placement-tracker/client
npm install
npm start
# Client application opens at http://localhost:3000Developed for Sahyadri College of Engineering & Management, Mangaluru to support the Training & Placement Department, improve placement outcomes, and streamline documentation for NAAC (Criterion 5.2.1), NBA, and NIRF audits.
Note on Data & Campus Imagery: All student names, USNs, CTC packages, placement records, phone numbers, and email addresses depicted in the portal demo and mock datasets are strictly synthetic sample data generated for demonstration and testing purposes. Campus photographs and institutional crests are included purely for educational UI design and portfolio demonstration, and do not represent actual student records or confidential college data.
Lead Developer & Maintainer:
- Anoop A β Full Stack Developer & GFG Campus Mantri, Sahyadri College
- GitHub: @anoopcodehack
- LinkedIn: Anoop A
This project is licensed under the MIT License. Free to use, adapt, and build upon for educational and institutional placement management.