How chethansk65/mock-interview-system-python-main works
Main Components
a. Frontend (React client)
b. Backend API Server (Python Flask/FastAPI)
c. AI/ML Modules
d. Static Assets (3D models, face-detection models)
e. External Services (optional, e.g., OpenAI or third-party ML APIs)
Relationships & Data Flows
• User Device (Browser) captures video and audio → feeds into React UI
• React components (FaceRecognition, Canvas3D, Model) load ML models from public/face_models
• Frontend calls Backend endpoints: /emotion, /questions, /review via HTTP REST
• Backend’s app.py routes requests to logic in functions/:
– emotion_analysis.py
– question_generation.py
– review_generation.py
• Backend returns JSON responses → Frontend displays animated feedback, 3D animations, and review pages
Architectural Patterns & Design Principles
• Separation of concerns:
– UI layer (React) vs Business logic (Python)
– Static assets served separately
• Modularization:
– React “pages” under src/pages/
– Reusable “components” under src/components/
– Server “functions” as independent modules
• Asynchronous calls / RESTful API design
Technology Stack Callouts
• Frontend: React.js, Webpack, face-api.js (for browser ML), Three.js or Canvas3D
• Backend: Python 3.12+, Flask (or FastAPI), standard ML libraries (TensorFlow/PyTorch) or external AI APIs
• Static Assets: GLB 3D models, pre-trained face-detection models shipped in public/face_models
• No persistent database in current scope (stateless interactions)