How vijethph/placementcell works
Main System Components
a) Frontend Layer (React + TypeScript):
• Main feature modules:
• Authentication (Login/Register)
• Quiz System
• Discussion Forum
• IDE/Code Compiler
• Video Learning
• Companies Dashboard
• User Profile
b) Backend Layer (Node.js + Express):
• API Routes (/users, /discussions, /companies, /videos, /questions, /codes)
• Authentication Middleware
• External API Integration (HackerEarth)
c) Database Layer (MongoDB):
• Data Models:
• User
• Company
• Discussion
• Quiz
• Video
[Client Layer (React)]
• ↕
[API Gateway/Express Routes]
• ↕
[Business Logic Layer]
• ↕
[Data Access Layer]
• ↕
[MongoDB Database]
Specific Elements
a) Client-Side Components:
• Service layer (UserFunctions.tsx)
• State management flow
b) Server-Side Components:
• Express route handlers
• Authentication middleware
• External API connector (HackerEarth)
• Logger service
c) Data Flow:
• REST API calls between frontend and backend
• Database operations
• External API communications
Important Relationships to Highlight
• Authentication flow from login/register to protected routes
• IDE's connection to HackerEarth API
• Demonstrate the quiz flow from question retrieval to submission
• How the discussion forum interactions work
Technical Details
• TypeScript integration on both frontend and backend
• Docker containerization setup
• MongoDB connection configuration
• API endpoints and their purposes
• Authentication token flow