# manoharreddy44/interviewprep-app architecture

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

- Interactive diagram: https://gitdiagram.com/manoharreddy44/interviewprep-app
- Repository: https://github.com/manoharreddy44/interviewprep-app

## Overview

InterviewPrep is a full-stack interview-practice product: users authenticate, choose a practice mode, receive AI-generated prompts and evaluations, and review progress and reports. The frontend routes dashboard modes and analytics; the Express API protects interview and account operations, with MongoDB-backed user/interview state and an AI service. README capabilities also include document processing and scheduled automation, though their implementation details were not sampled. Edges reflect shown routing/calls or README claims; unsampled capability links are omitted where ownership is unclear.

Main entry points: [`frontend/src/App.jsx`](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/App.jsx) (App routes), [`backend/server.js`](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/server.js) (Express server), [`backend/routes/interview.routes.js`](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/interview.routes.js) (Practice routes), [`backend/controllers/interview.controller.js`](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/interview.controller.js) (Interview workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React experience"]
  node_webapp["App routes<br/>[App.jsx]"]
  node_home["Dashboard<br/>[Home.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
end

subgraph group_identity["Authentication and accounts"]
  node_signup["Signup form<br/>[SignUpForm.jsx]"]
  node_signuphook["Signup hook<br/>[useSignup.js]"]
  node_login["Login page<br/>[Login.jsx]"]
  node_loginhook["Login hook<br/>[useLogin.js]"]
  node_authstate["Auth context<br/>[AuthContext.jsx]"]
  node_authcontroller["Auth controller<br/>[auth.controller.js]"]
  node_userprofile["Profile management<br/>[user.controller.js]"]
end

subgraph group_practice["Interview practice"]
  node_practiceui["Practice modes<br/>[TechnicalRound.jsx]"]
  node_hrui["HR practice<br/>[HrRound.jsx]"]
  node_groupui["Group discussion"]
  node_practicecontroller["Interview workflows"]
  node_ai["AI generation<br/>[connectToOpenAI.js]"]
end

subgraph group_insights["Reports and progress"]
  node_feedbackui["Feedback<br/>[Feedback.jsx]"]
  node_progressui["Progress tracking<br/>[Progress.jsx]"]
  node_analyticsui["Analytics<br/>[Analytics.jsx]"]
  node_reportcontroller["Report retrieval"]
end

subgraph group_platform["API and persistence"]
  node_authapi["Auth routes<br/>[auth.routes.js]"]
  node_users[("User accounts<br/>[user.model.js]")]
  node_userapi["User routes<br/>[user.routes.js]"]
  node_gate["Route protection<br/>[protectRoute.js]"]
  node_practiceapi["Practice routes"]
  node_interviews[("Interview records<br/>[interview.model.js]")]
  node_reportapi["Report routes<br/>[report.routes.js]"]
  node_mongo["MongoDB connection"]
  node_server["Express server<br/>[server.js]"]
  node_scheduler["Scheduled automation<br/>[cron.js]"]
end

node_candidate(("Candidate"))

node_candidate -->|"visits"| node_landing
node_candidate -->|"registers"| node_signup
node_candidate -->|"signs in"| node_login
node_candidate -->|"opens"| node_webapp
node_webapp -->|"checks session"| node_authstate
node_webapp -->|"routes to"| node_home
node_webapp -->|"routes to"| node_practiceui
node_webapp -->|"routes to"| node_hrui
node_webapp -->|"routes to"| node_groupui
node_webapp -->|"routes to"| node_feedbackui
node_webapp -->|"routes to"| node_progressui
node_webapp -->|"routes to"| node_analyticsui
node_signup -->|"submits via"| node_signuphook
node_signuphook -->|"posts signup"| node_authapi
node_signuphook -->|"sets user"| node_authstate
node_login -->|"signs in via"| node_loginhook
node_loginhook -->|"updates user"| node_authstate
node_authapi -->|"routes requests"| node_authcontroller
node_authcontroller -->|"reads and writes"| node_users
node_candidate -->|"practices"| node_practiceui
node_practiceui -.->|"requests practice"| node_practiceapi
node_hrui -.->|"requests practice"| node_practiceapi
node_groupui -.->|"requests practice"| node_practiceapi
node_practiceapi -->|"protects routes"| node_gate
node_practiceapi -->|"routes requests"| node_practicecontroller
node_practicecontroller -->|"generates prompts"| node_ai
node_practicecontroller -->|"reads and saves"| node_interviews
node_practicecontroller -->|"reads resume"| node_users
node_candidate -->|"reviews feedback"| node_feedbackui
node_candidate -->|"tracks progress"| node_progressui
node_candidate -->|"views analytics"| node_analyticsui
node_reportapi -->|"protects route"| node_gate
node_reportapi -->|"routes request"| node_reportcontroller
node_reportcontroller -->|"reads records"| node_interviews
node_userapi -->|"protects routes"| node_gate
node_userapi -->|"routes updates"| node_userprofile
node_userprofile -->|"updates account"| node_users
node_server -->|"mounts routes"| node_authapi
node_server -->|"mounts routes"| node_userapi
node_server -->|"mounts routes"| node_practiceapi
node_server -->|"mounts routes"| node_reportapi
node_server -->|"connects database"| node_mongo
node_server -->|"starts scheduler"| node_scheduler

click node_webapp "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/home/Home.jsx"
click node_landing "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/landing/LandingPage.jsx"
click node_signup "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/signup/SignUpForm.jsx"
click node_signuphook "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/hooks/useSignup.js"
click node_login "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/login/Login.jsx"
click node_loginhook "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/hooks/useLogin.js"
click node_authstate "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/context/AuthContext.jsx"
click node_authapi "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/auth.routes.js"
click node_authcontroller "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/auth.controller.js"
click node_users "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/models/user.model.js"
click node_userprofile "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/user.controller.js"
click node_userapi "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/user.routes.js"
click node_gate "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/middleware/protectRoute.js"
click node_practiceui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/TechnicalRound.jsx"
click node_hrui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/HrRound.jsx"
click node_groupui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/GroupDiscussions.jsx"
click node_practiceapi "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/interview.routes.js"
click node_practicecontroller "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/interview.controller.js"
click node_ai "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/openAi/connectToOpenAI.js"
click node_interviews "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/models/interview.model.js"
click node_feedbackui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Feedback.jsx"
click node_progressui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Progress.jsx"
click node_analyticsui "https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Analytics.jsx"
click node_reportapi "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/report.routes.js"
click node_reportcontroller "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/report.controller.js"
click node_mongo "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/db/connectToMongoDB.js"
click node_server "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/server.js"
click node_scheduler "https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/cron.js"

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_webapp,node_home,node_landing toneBlue
class node_signup,node_signuphook,node_login,node_loginhook,node_authstate,node_authcontroller,node_userprofile toneAmber
class node_practiceui,node_hrui,node_groupui,node_practicecontroller,node_ai toneMint
class node_feedbackui,node_progressui,node_analyticsui,node_reportcontroller toneRose
class node_authapi,node_users,node_userapi,node_gate,node_practiceapi,node_interviews,node_reportapi,node_mongo,node_server,node_scheduler,node_candidate toneIndigo
```

## Components

### React experience

- [App routes](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Dashboard](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/home/Home.jsx): `frontend/src/pages/home/Home.jsx`
- [Landing page](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/landing/LandingPage.jsx): `frontend/src/pages/landing/LandingPage.jsx`

### Authentication and accounts

- [Signup form](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/signup/SignUpForm.jsx): `frontend/src/pages/signup/SignUpForm.jsx`
- [Signup hook](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/hooks/useSignup.js): `frontend/src/hooks/useSignup.js`
- [Login page](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/pages/login/Login.jsx): `frontend/src/pages/login/Login.jsx`
- [Login hook](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/hooks/useLogin.js): `frontend/src/hooks/useLogin.js`
- [Auth context](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Auth controller](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/auth.controller.js): `backend/controllers/auth.controller.js`
- [Profile management](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/user.controller.js): `backend/controllers/user.controller.js`

### Interview practice

- [Practice modes](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/TechnicalRound.jsx): `frontend/src/components/sidebar/TechnicalRound.jsx`
- [HR practice](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/HrRound.jsx): `frontend/src/components/sidebar/HrRound.jsx`
- [Group discussion](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/GroupDiscussions.jsx): `frontend/src/components/sidebar/GroupDiscussions.jsx`
- [Interview workflows](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/interview.controller.js): `backend/controllers/interview.controller.js`
- [AI generation](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/openAi/connectToOpenAI.js): `backend/openAi/connectToOpenAI.js`

### Reports and progress

- [Feedback](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Feedback.jsx): `frontend/src/components/sidebar/Feedback.jsx`
- [Progress tracking](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Progress.jsx): `frontend/src/components/sidebar/Progress.jsx`
- [Analytics](https://github.com/manoharreddy44/interviewprep-app/blob/main/frontend/src/components/sidebar/Analytics.jsx): `frontend/src/components/sidebar/Analytics.jsx`
- [Report retrieval](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/controllers/report.controller.js): `backend/controllers/report.controller.js`

### API and persistence

- [Auth routes](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/auth.routes.js): `backend/routes/auth.routes.js`
- [User accounts](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/models/user.model.js): `backend/models/user.model.js`
- [User routes](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/user.routes.js): `backend/routes/user.routes.js`
- [Route protection](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/middleware/protectRoute.js): `backend/middleware/protectRoute.js`
- [Practice routes](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/interview.routes.js): `backend/routes/interview.routes.js`
- [Interview records](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/models/interview.model.js): `backend/models/interview.model.js`
- [Report routes](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/routes/report.routes.js): `backend/routes/report.routes.js`
- [MongoDB connection](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/db/connectToMongoDB.js): `backend/db/connectToMongoDB.js`
- [Express server](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/server.js): `backend/server.js`
- [Scheduled automation](https://github.com/manoharreddy44/interviewprep-app/blob/main/backend/cron.js): `backend/cron.js`

### Other components

- **Candidate**

## Connections

- Candidate → Landing page: visits
- Candidate → Signup form: registers
- Candidate → Login page: signs in
- Candidate → App routes: opens (evidence: `frontend/src/App.jsx`)
- App routes → Auth context: checks session (evidence: `frontend/src/App.jsx`)
- App routes → Dashboard: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Practice modes: routes to (evidence: `frontend/src/App.jsx`)
- App routes → HR practice: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Group discussion: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Feedback: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Progress tracking: routes to (evidence: `frontend/src/App.jsx`)
- App routes → Analytics: routes to (evidence: `frontend/src/App.jsx`)
- Signup form → Signup hook: submits via (evidence: `frontend/src/pages/signup/SignUpForm.jsx`)
- Signup hook → Auth routes: posts signup (evidence: `frontend/src/hooks/useSignup.js`)
- Signup hook → Auth context: sets user (evidence: `frontend/src/hooks/useSignup.js`)
- Login page → Login hook: signs in via (evidence: `frontend/src/pages/login/Login.jsx`)
- Login hook → Auth context: updates user (evidence: `frontend/src/hooks/useLogin.js`)
- Auth routes → Auth controller: routes requests (evidence: `backend/routes/auth.routes.js`)
- Auth controller → User accounts: reads and writes (evidence: `backend/controllers/auth.controller.js`)
- Candidate → Practice modes: practices
- Practice modes → Practice routes: requests practice
- HR practice → Practice routes: requests practice
- Group discussion → Practice routes: requests practice
- Practice routes → Route protection: protects routes (evidence: `backend/routes/interview.routes.js`)
- Practice routes → Interview workflows: routes requests (evidence: `backend/routes/interview.routes.js`)
- Interview workflows → AI generation: generates prompts (evidence: `backend/controllers/interview.controller.js`)
- Interview workflows → Interview records: reads and saves (evidence: `backend/controllers/interview.controller.js`)
- Interview workflows → User accounts: reads resume (evidence: `backend/controllers/interview.controller.js`)
- Candidate → Feedback: reviews feedback
- Candidate → Progress tracking: tracks progress
- Candidate → Analytics: views analytics
- Report routes → Route protection: protects route (evidence: `backend/routes/report.routes.js`)
- Report routes → Report retrieval: routes request (evidence: `backend/routes/report.routes.js`)
- Report retrieval → Interview records: reads records (evidence: `backend/controllers/report.controller.js`)
- User routes → Route protection: protects routes (evidence: `backend/routes/user.routes.js`)
- User routes → Profile management: routes updates (evidence: `backend/routes/user.routes.js`)
- Profile management → User accounts: updates account (evidence: `backend/controllers/user.controller.js`)
- Express server → Auth routes: mounts routes (evidence: `backend/server.js`)
- Express server → User routes: mounts routes (evidence: `backend/server.js`)
- Express server → Practice routes: mounts routes (evidence: `backend/server.js`)
- Express server → Report routes: mounts routes (evidence: `backend/server.js`)
- Express server → MongoDB connection: connects database (evidence: `backend/server.js`)
- Express server → Scheduled automation: starts scheduler (evidence: `backend/server.js`)
