# babblu7/career-mentor-agent architecture

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

- Interactive diagram: https://gitdiagram.com/babblu7/career-mentor-agent
- Repository: https://github.com/babblu7/career-mentor-agent

## Overview

Career Mentor Agent is a student career-guidance web app. Students complete a profile assessment in the React interface, which submits it to Flask; the recommendation engine scores career pathways and returns matches, explanations, alternatives, and a one-year roadmap for the interface to present. The README also describes pathway exploration and MongoDB integration. The sampled backend shows the API-to-engine call, while the engine’s database relationship is not visible in the excerpt, so that connection is marked unverified.

Main entry points: [`backend/career_engine.py`](https://github.com/babblu7/career-mentor-agent/blob/main/backend/career_engine.py) (Scoring and Recommendations), [`frontend/src/App.jsx`](https://github.com/babblu7/career-mentor-agent/blob/main/frontend/src/App.jsx) (Assessment, Results, Mentor), [`backend/app.py`](https://github.com/babblu7/career-mentor-agent/blob/main/backend/app.py) (Flask API), [`backend/db.py`](https://github.com/babblu7/career-mentor-agent/blob/main/backend/db.py) (MongoDB Pathway Store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Student Experience"]
  node_web_app["Assessment, Results, Mentor<br/>[App.jsx]"]
end

subgraph group_service["Recommendation Service"]
  node_api["Flask API<br/>[app.py]"]
  node_engine["Scoring and Recommendations<br/>[career_engine.py]"]
end

subgraph group_data["Pathway Data"]
  node_pathways_json["15 Career Pathways<br/>[pathways.json]"]
  node_pathway_store[("MongoDB Pathway Store<br/>[db.py]")]
end

node_student(("Student"))

node_student -->|"enters profile"| node_web_app
node_web_app -->|"posts profile"| node_api
node_api -->|"requests recommendations"| node_engine
node_engine -->|"returns guidance"| node_web_app
node_engine -.->|"may read pathways"| node_pathway_store

click node_web_app "https://github.com/babblu7/career-mentor-agent/blob/main/frontend/src/App.jsx"
click node_api "https://github.com/babblu7/career-mentor-agent/blob/main/backend/app.py"
click node_engine "https://github.com/babblu7/career-mentor-agent/blob/main/backend/career_engine.py"
click node_pathways_json "https://github.com/babblu7/career-mentor-agent/blob/main/database/pathways.json"
click node_pathway_store "https://github.com/babblu7/career-mentor-agent/blob/main/backend/db.py"

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_web_app toneBlue
class node_api,node_engine toneAmber
class node_pathways_json,node_pathway_store toneMint
class node_student toneIndigo
```

## Components

### Student Experience

- [Assessment, Results, Mentor](https://github.com/babblu7/career-mentor-agent/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`

### Recommendation Service

- [Flask API](https://github.com/babblu7/career-mentor-agent/blob/main/backend/app.py): `backend/app.py`
- [Scoring and Recommendations](https://github.com/babblu7/career-mentor-agent/blob/main/backend/career_engine.py): `backend/career_engine.py`

### Pathway Data

- [15 Career Pathways](https://github.com/babblu7/career-mentor-agent/blob/main/database/pathways.json): `database/pathways.json`
- [MongoDB Pathway Store](https://github.com/babblu7/career-mentor-agent/blob/main/backend/db.py): `backend/db.py`

### Other components

- **Student**

## Connections

- Student → Assessment, Results, Mentor: enters profile (evidence: `frontend/src/App.jsx`)
- Assessment, Results, Mentor → Flask API: posts profile (evidence: `frontend/src/App.jsx`)
- Flask API → Scoring and Recommendations: requests recommendations (evidence: `backend/app.py`)
- Scoring and Recommendations → Assessment, Results, Mentor: returns guidance (evidence: `frontend/src/App.jsx`)
- Scoring and Recommendations → MongoDB Pathway Store: may read pathways (evidence: `backend/career_engine.py`)
