# thegit-69/toc-capstone architecture

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

- Interactive diagram: https://gitdiagram.com/thegit-69/toc-capstone
- Repository: https://github.com/thegit-69/toc-capstone

## Overview

This repository is a resume-screening and hiring-management application: hiring users sign in, upload PDF resumes, review candidates, define jobs, and inspect screening scores; candidate status updates can trigger email notifications. The frontend routes users to these views, while the FastAPI backend handles uploads and hiring operations, with SQLAlchemy-backed persistence. The parser and database-operation modules are distinct internal layers. Some backend excerpts are partial, so links between API handlers and imported processing modules are supported by the source index rather than complete call-site excerpts.

Main entry points: [`backend/api.py`](https://github.com/thegit-69/toc-capstone/blob/main/backend/api.py) (FastAPI handlers), [`frontend/src/App.jsx`](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/App.jsx) (Application router), [`frontend/src/components/UploadView.jsx`](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/UploadView.jsx) (Resume upload), [`backend/db_operations.py`](https://github.com/thegit-69/toc-capstone/blob/main/backend/db_operations.py) (Database operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Hiring dashboard"]
  node_app["Application router<br/>[App.jsx]"]
  node_login["Login view<br/>[LoginView.jsx]"]
  node_candidate_table["Candidate review<br/>[CandidateTable.jsx]"]
  node_upload_view["Resume upload<br/>[UploadView.jsx]"]
  node_syntax_animation["Syntax animation"]
  node_jobs_view["Job management<br/>[JobsView.jsx]"]
  node_scoring_view["Scoring metrics"]
end

subgraph group_api["Backend API"]
  node_api["FastAPI handlers<br/>[api.py]"]
end

subgraph group_processing["Resume processing"]
  node_extractor["PDF text extraction<br/>[extractor.py]"]
  node_parser["Resume parser<br/>[parser_engine.py]"]
end

subgraph group_persistence["Persistence and notifications"]
  node_db_operations["Database operations<br/>[db_operations.py]"]
  node_models["Hiring data models<br/>[models.py]"]
  node_database["Database session<br/>[database.py]"]
  node_email_service["Status email service<br/>[email_service.py]"]
end

node_user(("Hiring user"))
node_postgres[("PostgreSQL database")]
node_resend["Resend email service"]

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_candidate_table
node_app -->|"routes to"| node_upload_view
node_app -->|"routes to"| node_jobs_view
node_app -->|"routes to"| node_scoring_view
node_upload_view -->|"renders"| node_syntax_animation
node_upload_view -->|"uploads PDF"| node_api
node_candidate_table -->|"requests candidate data"| node_api
node_jobs_view -->|"manages jobs"| node_api
node_api -->|"extracts PDF text"| node_extractor
node_api -->|"parses resume"| node_parser
node_api -->|"saves and queries"| node_db_operations
node_api -->|"queries records"| node_models
node_api -->|"queues status email"| node_email_service
node_db_operations -->|"creates records"| node_models
node_db_operations -->|"opens sessions"| node_database
node_models -->|"uses ORM base"| node_database
node_database -->|"connects to"| node_postgres
node_email_service -->|"sends email"| node_resend

click node_app "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/App.jsx"
click node_login "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/LoginView.jsx"
click node_candidate_table "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/CandidateTable.jsx"
click node_upload_view "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/UploadView.jsx"
click node_syntax_animation "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/SyntaxTreeAnimation.jsx"
click node_jobs_view "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/JobsView.jsx"
click node_scoring_view "https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/ScoringMetricsView.jsx"
click node_api "https://github.com/thegit-69/toc-capstone/blob/main/backend/api.py"
click node_extractor "https://github.com/thegit-69/toc-capstone/blob/main/backend/extractor.py"
click node_parser "https://github.com/thegit-69/toc-capstone/blob/main/backend/parser_engine.py"
click node_db_operations "https://github.com/thegit-69/toc-capstone/blob/main/backend/db_operations.py"
click node_models "https://github.com/thegit-69/toc-capstone/blob/main/backend/models.py"
click node_database "https://github.com/thegit-69/toc-capstone/blob/main/backend/database.py"
click node_email_service "https://github.com/thegit-69/toc-capstone/blob/main/backend/email_service.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_app,node_login,node_candidate_table,node_upload_view,node_syntax_animation,node_jobs_view,node_scoring_view,node_user toneBlue
class node_api,node_postgres toneAmber
class node_extractor,node_parser toneMint
class node_db_operations,node_models,node_database,node_email_service toneRose
class node_resend toneIndigo
```

## Components

### Hiring dashboard

- [Application router](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Login view](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/LoginView.jsx): `frontend/src/components/LoginView.jsx`
- [Candidate review](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/CandidateTable.jsx): `frontend/src/components/CandidateTable.jsx`
- [Resume upload](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/UploadView.jsx): `frontend/src/components/UploadView.jsx`
- [Syntax animation](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/SyntaxTreeAnimation.jsx): `frontend/src/components/SyntaxTreeAnimation.jsx`
- [Job management](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/JobsView.jsx): `frontend/src/components/JobsView.jsx`
- [Scoring metrics](https://github.com/thegit-69/toc-capstone/blob/main/frontend/src/components/ScoringMetricsView.jsx): `frontend/src/components/ScoringMetricsView.jsx`

### Backend API

- [FastAPI handlers](https://github.com/thegit-69/toc-capstone/blob/main/backend/api.py): `backend/api.py`

### Resume processing

- [PDF text extraction](https://github.com/thegit-69/toc-capstone/blob/main/backend/extractor.py): `backend/extractor.py`
- [Resume parser](https://github.com/thegit-69/toc-capstone/blob/main/backend/parser_engine.py): `backend/parser_engine.py`

### Persistence and notifications

- [Database operations](https://github.com/thegit-69/toc-capstone/blob/main/backend/db_operations.py): `backend/db_operations.py`
- [Hiring data models](https://github.com/thegit-69/toc-capstone/blob/main/backend/models.py): `backend/models.py`
- [Database session](https://github.com/thegit-69/toc-capstone/blob/main/backend/database.py): `backend/database.py`
- [Status email service](https://github.com/thegit-69/toc-capstone/blob/main/backend/email_service.py): `backend/email_service.py`

### Other components

- **Hiring user**
- **PostgreSQL database**
- **Resend email service**

## Connections

- Hiring user → Application router: uses (evidence: `frontend/src/App.jsx`)
- Application router → Login view: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Candidate review: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Resume upload: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Job management: routes to (evidence: `frontend/src/App.jsx`)
- Application router → Scoring metrics: routes to (evidence: `frontend/src/App.jsx`)
- Resume upload → Syntax animation: renders (evidence: `frontend/src/components/UploadView.jsx`)
- Resume upload → FastAPI handlers: uploads PDF (evidence: `frontend/src/components/UploadView.jsx`)
- Candidate review → FastAPI handlers: requests candidate data (evidence: `frontend/src/components/CandidateTable.jsx`)
- Job management → FastAPI handlers: manages jobs (evidence: `frontend/src/components/JobsView.jsx`)
- FastAPI handlers → PDF text extraction: extracts PDF text (evidence: `backend/api.py`)
- FastAPI handlers → Resume parser: parses resume (evidence: `backend/api.py`)
- FastAPI handlers → Database operations: saves and queries (evidence: `backend/api.py`)
- FastAPI handlers → Hiring data models: queries records (evidence: `backend/api.py`)
- FastAPI handlers → Status email service: queues status email (evidence: `backend/api.py`)
- Database operations → Hiring data models: creates records (evidence: `backend/db_operations.py`)
- Database operations → Database session: opens sessions (evidence: `backend/db_operations.py`)
- Hiring data models → Database session: uses ORM base (evidence: `backend/models.py`)
- Database session → PostgreSQL database: connects to (evidence: `backend/database.py`)
- Status email service → Resend email service: sends email (evidence: `backend/email_service.py`)
