A full-stack interview preparation platform with a categorized question bank, timed quizzes, a judged multi-language code workspace, an interactive DSA visualizer, competitive-programming profile integration, and a placement-readiness score derived from real activity.
- Real judging, not a fake runner. Submissions run against visible + hidden tests in a Judge0 sandbox. Hidden test data never reaches the browser.
- Honest analytics. Readiness and mastery come from tracked attempts. Missing data contributes zero; there are no invented percentages.
- Real competitive-programming data. Codeforces (official API) and LeetCode (public GraphQL) — with honest failure states.
- Stateless, horizontally scalable API. Rotating refresh tokens, a DB-backed async judge queue, connection pooling, cache headers, and a load-test tool.
| Path | Purpose |
|---|---|
frontend/ |
React 19 + Vite application |
server/ |
Express + MongoDB API |
Questions/ |
Question datasets (easy / medium / hard / MNC, plus interview for ML/DL/Gen-AI) |
docs/SCALING.md |
Scaling model, measured throughput, and production checklist |
.github/workflows/ci.yml |
CI: server tests + frontend build |
- 10 topics, 4,375 questions across Easy, Medium, Hard, MNC, and Interview tiers.
- Tier availability and counts come from the actual files.
- Mixed formats: MCQs are auto-graded; open-response MNC questions support reference-answer reveal and self-assessment.
- Server-side answer keys prevent score tampering.
- Timed quizzes, question palette, flagging, XP, streaks, attempt history.
- Daily Challenge — deterministic question per UTC day.
- Revision Queue — re-attempt questions you actually missed.
- Monaco editor: C++17, Python 3, Java, JavaScript, C, TypeScript.
- Custom input, run, compile/runtime diagnostics, time and memory.
- 6 curated problems with visible + hidden tests, accepted verdicts, and submission history.
- Async grading:
POST /submitreturns202, the client polls the submission, and a background worker claims jobs atomically so multiple API instances are safe. - The standalone
/playgroundremains available for free-form execution.
- Step-through Bubble/Selection/Insertion sort.
- Binary search with low/high/mid pointers and eliminated ranges.
- BFS and DFS traversal on a graph with visit order and frontier state.
- Codeforces: rating, max rating, rank, unique solved, contests, rating history, recent submissions.
- LeetCode: solved by difficulty, ranking, reputation, contest rating.
- Refresh and disconnect supported. CodeChef is intentionally not integrated (no stable public API).
- Dashboard: totals, accuracy, streak, category performance, weak areas, activity.
- 30-day activity heatmap, topic mastery bars, difficulty mix, and judge statistics.
- Placement readiness with documented weights: accuracy 30%, coverage 15%, consistency 15%, Hard/MNC depth 15%, DSA 15%, contest profile 10%.
- Recommendations generated from weak topics, untried topics, consistency, and missing integrations.
- Short-lived JWT access token (1h) + httpOnly, rotating refresh token (30d, hashed at rest).
- Automatic token refresh in the Axios interceptor.
- Auth-specific rate limiting, code-execution rate limiting, helmet, CORS allowlist, body limits.
- Server-side grading for both quizzes and judged problems.
- Node.js 18+ (tested on Node 25)
- MongoDB (local, Docker, or Atlas)
- Internet access for Judge0 / Codeforces / LeetCode
cd server && npm install
cd ../frontend && npm installcp .env.example server/.envKey values:
MONGODB_URI=mongodb://localhost:27017/interview-prep-platform
JWT_SECRET=replace-with-a-long-random-secret
JWT_EXPIRE=1h
PORT=5000
NODE_ENV=development
CLIENT_URL=http://localhost:5173
JUDGE0_URL=https://ce.judge0.com
JUDGE_WORKER=true
API_RATE_LIMIT_MAX=3000
MONGO_POOL_SIZE=50Optional frontend config (frontend/.env):
VITE_API_URL=http://localhost:5000/api# Terminal 1
mongod --dbpath /path/to/mongo-data
# Terminal 2
cd server && npm run dev
# Terminal 3
cd frontend && npm run devOpen http://localhost:5173.
docker compose up --build
# API: http://localhost:5000 MongoDB: localhost:27017The problem set is seeded idempotently on API startup.
| Method | Route | Auth | Description |
|---|---|---|---|
| POST | /api/auth/register / login |
– | Issues access token + refresh cookie |
| POST | /api/auth/refresh |
cookie | Rotates refresh token, returns access token |
| POST | /api/auth/logout |
cookie | Revokes refresh token |
| GET | /api/quiz/categories / stats |
– | Tier metadata and real totals (cached) |
| GET | /api/quiz/questions |
✓ | Start a quiz |
| GET | /api/quiz/daily |
✓ | Deterministic daily challenge |
| GET | /api/quiz/revision |
✓ | Missed-question revision queue |
| POST | /api/quiz/submit |
✓ | Grade and persist an attempt |
| GET | /api/analytics/stats / category-performance / weak-areas |
✓ | Dashboard analytics |
| GET | /api/analytics/readiness |
✓ | Weighted readiness breakdown |
| GET | /api/analytics/overview |
✓ | Heatmap, topic mastery, judge stats |
| GET | /api/problems / progress |
✓ | Judged problem list and progress |
| GET | /api/problems/:slug |
✓ | Statement + visible tests |
| POST | /api/problems/:slug/run |
✓ | Run against custom input |
| POST | /api/problems/:slug/submit |
✓ | Queue submission (202) |
| GET | /api/problems/submissions/:id |
✓ | Poll verdict |
| GET | /api/problems/:slug/submissions |
✓ | Submission history |
| GET | /api/code/languages / POST /run |
✓ | Free-form sandboxed execution |
| GET | /api/users/cp-profiles |
✓ | Stored coding profiles |
| POST | /api/users/cp-profiles/codeforces / leetcode |
✓ | Connect/refresh |
| GET | /api/health / metrics |
– | Readiness and operational counters |
cd server && npm test # 11 unit tests
cd ../frontend && npm run build
cd ../server && npm run loadtest -- --url=http://localhost:5000/api/quiz/stats --concurrency=50 --duration=10Measured on this machine with rate limiting relaxed: ~2,800 req/s for cached public stats and ~765 req/s for the authenticated problems list. See docs/SCALING.md for the capacity model and production checklist.
- The public Judge0 CE endpoint is rate-limited; self-host Judge0 for production.
- LeetCode's public GraphQL endpoint can throttle or change.
- The judge queue is MongoDB-backed and polled. It is multi-instance safe but at very high volume should move to BullMQ/SQS.
- Rate limiting is per-process; use a Redis store when running several API instances.
- CodeChef is intentionally unsupported.
- There is no public shareable profile page yet.
MIT