Skip to content

About

πŸŽ“PlaceTrack β€” AI-Powered Student Placement Tracker ,A full-stack MERN web application that digitizes campus placement management. It features real-time notifications, AI-driven resume scoring, an AI mock interview bot, an automated eligibility engine, email automation, and a multi-chart analytics dashboard built on MongoDB aggregation pipelines.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

103 Commits

Folders and files

Repository files navigation

PlaceTrack β€” Enterprise Student Placement Portal & Accreditation Engine

CI Pipeline Coverage Docker React 18 Node.js MongoDB Socket.io NAAC Compliant License: MIT

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.


Live Deployment & Preview

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

Key Core Pillars & Architecture

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
Loading

Enterprise Feature Modules

1. High-Concurrency "Flash Drive" Registration Engine

  • 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-Key transaction 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 Amber 70%–90%, Red > 90%), and disabled "Slots Full" status protections.

2. Campus Recruitment Drives & 1-Click Apply Engine

  • Real-Time Drive Eligibility Engine: Automatically cross-references incoming campus drive requirements against the logged-in student's live academic profile across 4 criteria:
    1. Minimum CGPA (e.g. $\ge 7.0$)
    2. Maximum Backlogs Allowed (e.g. $\le 0$)
    3. Eligible Branches (e.g. CSE, ISE, ECE)
    4. Placement Status (unplaced students only)
  • 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 .xlsx spreadsheets in 1 click.

3. Official NAAC Criterion 5.2.1 & NIRF Audit Report Generator

  • 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 ($&lt; 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) via jsPDF and jspdf-autotable.
  • NAAC Portal Excel Export: Generates a 3-sheet .xlsx file formatted to match the NAAC SSR portal template.

4. Company Prep Hub & Interactive Interview Question Bank

  • 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.

5. Placement Analytics & Executive Dashboard

  • 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).

6. Role-Based Access Control (RBAC) & Security Hardening

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 none algorithm and signature tampering).
  • Defensive Query Parameterization: Protection against NoSQL query selector injection attacks.
  • Non-Blocking Toasts: Error handling uses accessible react-toastify toasts instead of UI-blocking alert() popups.

Automated Testing & Quality Assurance

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

CI/CD Pipeline (GitHub Actions)

Continuous Integration is fully automated via GitHub Actions in .github/workflows/ci.yml:

  • Triggers: Automated execution on every push and pull_request targeting main and master.
  • Backend Matrix: Parallel execution on Ubuntu across Node.js 18.x and Node.js 20.x LTS.
  • Dependency Caching: Automated npm ci with dependency hash caching for sub-minute CI runs.
  • Verification Stages:
    1. Unit tests execution (npm run test:unit)
    2. Code coverage threshold verification (npm run test:coverage)
    3. High-load concurrency and performance benchmark verification (npm run test:perf)
    4. Security audit and penetration test execution (npm run test:security)
    5. In-memory integration suite verification (npm run test:integration)
    6. Frontend unit tests execution (CI=true npm test)
    7. Client production build compilation (npm run build)
  • Status Gate: Pull requests are automatically blocked if any test fails or compilation breaks.

Docker & Cloud Deployment

1. Multi-Container Orchestration (Docker Compose)

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 persistent mongo-data volume)
  • Health Probes: Automatic database ping check and container health probe at /api/health.

2. Multi-Stage Production Docker Build

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-init signal handling and non-root node user 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:latest

3. Cloud Deployment (Render / PaaS)

Configured 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.


Project Structure

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

Local Development & Setup

Prerequisites

  • Node.js: v18.0.0 or higher
  • MongoDB: Local MongoDB instance or MongoDB Atlas cluster connection string
  • Package Manager: npm or yarn

1. Clone the Repository

git clone https://github.com/anoopcodehack/Student-Placement-Tracker.git
cd Student-Placement-Tracker

2. Backend Configuration & Startup

cd placement-tracker/server
npm install

Create 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=development

Start the backend server:

npm run dev
# Server starts on http://localhost:5000 with MongoDB connected & auto-seeded

3. Frontend Configuration & Startup

In a separate terminal:

cd placement-tracker/client
npm install
npm start
# Client application opens at http://localhost:3000

Institutional Context & Attribution

Developed 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

License

This project is licensed under the MIT License. Free to use, adapt, and build upon for educational and institutional placement management.

About

πŸŽ“PlaceTrack β€” AI-Powered Student Placement Tracker ,A full-stack MERN web application that digitizes campus placement management. It features real-time notifications, AI-driven resume scoring, an AI mock interview bot, an automated eligibility engine, email automation, and a multi-chart analytics dashboard built on MongoDB aggregation pipelines.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages