# muskanmehta-2006/mockinterviewx_frontend architecture

> Architecture diagram of the GitHub repository muskanmehta-2006/mockinterviewx_frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muskanmehta-2006/mockinterviewx_frontend
- Repository: https://github.com/muskanmehta-2006/mockinterviewx_frontend

## Overview

MockInterviewX is a React frontend for AI interview practice and human-mentor booking. Users enter through the landing page, authenticate, choose an interview mode, and use a practice or booking experience; the app also exposes results, feedback, and interviewer-management pages. The route map and several API calls are visible in the excerpts; the backend’s internal behavior and unsampled page interactions are not shown, so those connections are not inferred.

Main entry points: [`src/App.js`](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/App.js) (Route application), [`src/services/api.js`](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/services/api.js) (Backend API client), [`src/pages/Login.jsx`](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Login.jsx) (Login), [`src/pages/Register.jsx`](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Register.jsx) (Registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and routing"]
  node_app["Route application<br/>[App.js]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
end

subgraph group_identity["Identity"]
  node_login["Login<br/>[Login.jsx]"]
  node_register["Registration<br/>[Register.jsx]"]
  node_firebase["Firebase auth setup<br/>[firebase.js]"]
end

subgraph group_practice["AI practice"]
  node_interview_type["Interview type<br/>[InterviewType.jsx]"]
  node_interview_choice["Interview choice"]
  node_dsa["Coding interview<br/>[Dsa.jsx]"]
  node_ai_prompt["AI question panel"]
  node_fundamentals["Theory interview"]
  node_api["Backend API client<br/>[api.js]"]
end

subgraph group_mentors["Human interviews"]
  node_human_interview["Mentor booking<br/>[HumanInterview.jsx]"]
  node_payment{{"Razorpay checkout"}}
end

subgraph group_review["Review and management"]
  node_results["Interview results<br/>[Results.jsx]"]
  node_feedback["Coding feedback<br/>[Feedback.jsx]"]
  node_theory_feedback["Theory feedback<br/>[FeedbackTheory.jsx]"]
  node_interviewer_dashboard["Interviewer dashboard"]
  node_interviewer_profile["Interviewer profile"]
end

node_visitor(("User"))
node_firebase_service{{"Firebase Auth"}}
node_backend{{"MockInterviewX backend"}}

node_visitor -.->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_interview_type
node_app -->|"routes to"| node_interview_choice
node_app -->|"routes to"| node_dsa
node_app -->|"routes to"| node_fundamentals
node_app -->|"routes to"| node_human_interview
node_app -->|"routes to"| node_results
node_app -->|"routes to"| node_feedback
node_app -->|"routes to"| node_theory_feedback
node_app -->|"routes to"| node_interviewer_dashboard
node_app -->|"routes to"| node_interviewer_profile
node_login -->|"uses provider"| node_firebase
node_register -->|"uses provider"| node_firebase
node_firebase -->|"initializes"| node_firebase_service
node_login -->|"sends auth requests"| node_api
node_register -->|"sends auth requests"| node_api
node_dsa -->|"renders"| node_ai_prompt
node_dsa -->|"requests evaluation"| node_api
node_ai_prompt -->|"fetches question"| node_api
node_fundamentals -->|"requests data"| node_api
node_human_interview -->|"fetches mentors"| node_api
node_human_interview -->|"opens checkout"| node_payment
node_interviewer_dashboard -->|"requests data"| node_api
node_interviewer_profile -->|"updates profile"| node_api
node_theory_feedback -->|"requests data"| node_api
node_api -->|"sends HTTP requests"| node_backend

click node_app "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/App.js"
click node_landing "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/LandingPage.jsx"
click node_login "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Login.jsx"
click node_register "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Register.jsx"
click node_firebase "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/firebase.js"
click node_interview_type "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewType.jsx"
click node_interview_choice "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewChoicePage.jsx"
click node_dsa "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Dsa.jsx"
click node_ai_prompt "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/components/LeftAiInterview.jsx"
click node_fundamentals "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/FundamentalsInterview.jsx"
click node_api "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/services/api.js"
click node_human_interview "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/HumanInterview.jsx"
click node_results "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Results.jsx"
click node_feedback "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Feedback.jsx"
click node_theory_feedback "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/FeedbackTheory.jsx"
click node_interviewer_dashboard "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewerDashboard.jsx"
click node_interviewer_profile "https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewerProfile.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_landing,node_visitor,node_backend toneBlue
class node_login,node_register,node_firebase toneAmber
class node_interview_type,node_interview_choice,node_dsa,node_ai_prompt,node_fundamentals,node_api toneMint
class node_human_interview,node_payment toneRose
class node_results,node_feedback,node_theory_feedback,node_interviewer_dashboard,node_interviewer_profile,node_firebase_service toneIndigo
```

## Components

### App and routing

- [Route application](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/App.js): `src/App.js`
- [Landing page](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`

### Identity

- [Login](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Registration](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Register.jsx): `src/pages/Register.jsx`
- [Firebase auth setup](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/firebase.js): `src/firebase.js`

### AI practice

- [Interview type](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewType.jsx): `src/pages/InterviewType.jsx`
- [Interview choice](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewChoicePage.jsx): `src/pages/InterviewChoicePage.jsx`
- [Coding interview](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Dsa.jsx): `src/pages/Dsa.jsx`
- [AI question panel](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/components/LeftAiInterview.jsx): `src/components/LeftAiInterview.jsx`
- [Theory interview](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/FundamentalsInterview.jsx): `src/pages/FundamentalsInterview.jsx`
- [Backend API client](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/services/api.js): `src/services/api.js`

### Human interviews

- [Mentor booking](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/HumanInterview.jsx): `src/pages/HumanInterview.jsx`
- **Razorpay checkout**

### Review and management

- [Interview results](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Results.jsx): `src/pages/Results.jsx`
- [Coding feedback](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/Feedback.jsx): `src/pages/Feedback.jsx`
- [Theory feedback](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/FeedbackTheory.jsx): `src/pages/FeedbackTheory.jsx`
- [Interviewer dashboard](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewerDashboard.jsx): `src/pages/InterviewerDashboard.jsx`
- [Interviewer profile](https://github.com/muskanmehta-2006/mockinterviewx_frontend/blob/main/src/pages/InterviewerProfile.jsx): `src/pages/InterviewerProfile.jsx`

### Other components

- **User**
- **Firebase Auth**
- **MockInterviewX backend**

## Connections

- User → Route application: opens
- Route application → Landing page: routes to (evidence: `src/App.js`)
- Route application → Login: routes to (evidence: `src/App.js`)
- Route application → Registration: routes to (evidence: `src/App.js`)
- Route application → Interview type: routes to (evidence: `src/App.js`)
- Route application → Interview choice: routes to (evidence: `src/App.js`)
- Route application → Coding interview: routes to (evidence: `src/App.js`)
- Route application → Theory interview: routes to (evidence: `src/App.js`)
- Route application → Mentor booking: routes to (evidence: `src/App.js`)
- Route application → Interview results: routes to (evidence: `src/App.js`)
- Route application → Coding feedback: routes to (evidence: `src/App.js`)
- Route application → Theory feedback: routes to (evidence: `src/App.js`)
- Route application → Interviewer dashboard: routes to (evidence: `src/App.js`)
- Route application → Interviewer profile: routes to (evidence: `src/App.js`)
- Login → Firebase auth setup: uses provider (evidence: `src/pages/Login.jsx`)
- Registration → Firebase auth setup: uses provider (evidence: `src/pages/Register.jsx`)
- Firebase auth setup → Firebase Auth: initializes (evidence: `src/firebase.js`)
- Login → Backend API client: sends auth requests (evidence: `src/pages/Login.jsx`)
- Registration → Backend API client: sends auth requests (evidence: `src/pages/Register.jsx`)
- Coding interview → AI question panel: renders (evidence: `src/pages/Dsa.jsx`)
- Coding interview → Backend API client: requests evaluation (evidence: `src/pages/Dsa.jsx`)
- AI question panel → Backend API client: fetches question (evidence: `src/components/LeftAiInterview.jsx`)
- Theory interview → Backend API client: requests data (evidence: `src/pages/FundamentalsInterview.jsx`)
- Mentor booking → Backend API client: fetches mentors (evidence: `src/pages/HumanInterview.jsx`)
- Mentor booking → Razorpay checkout: opens checkout (evidence: `src/pages/HumanInterview.jsx`)
- Interviewer dashboard → Backend API client: requests data (evidence: `src/pages/InterviewerDashboard.jsx`)
- Interviewer profile → Backend API client: updates profile (evidence: `src/pages/InterviewerProfile.jsx`)
- Theory feedback → Backend API client: requests data (evidence: `src/pages/FeedbackTheory.jsx`)
- Backend API client → MockInterviewX backend: sends HTTP requests (evidence: `src/services/api.js`)
