# dhananjaylab/resume_app architecture

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

- Interactive diagram: https://gitdiagram.com/dhananjaylab/resume_app
- Repository: https://github.com/dhananjaylab/resume_app

## Overview

1. This repo is a two-part application: a React/Vite frontend and a Spring Boot backend. The frontend handles resume editing and presentation; the backend owns resume standardization, AI-driven enrichment, and DOCX generation.

2. The frontend lives in `resume-standardizer-fe`. It is a single-page app composed of section-level components such as `ProfessionalSummary`, `ProfessionalExperience`, `ProjectExperience`, `EducationAndQualifications`, `CertificationsAndCourses`, `Awards`, `Credits`, and `MiscellaneousData`. `ResumeEditor` appears to be the central orchestration component that assembles these sections into an editable resume view.

3. The frontend data model is structured rather than freeform. `src/models/FormatterStructured.js` suggests the UI consumes a normalized resume shape, which is important for rendering, editing, and sending a consistent payload to the backend.

4. The frontend also includes `SeeOriginal` and `FullPageSpinner`, which indicate two key UI states: viewing the source/original resume content and waiting for backend processing. That implies the app has an asynchronous flow where AI parsing or formatting may take time.

5. The backend lives in `resume-standardizer-be` and is a Spring Boot service. `ResumeController` is the main API boundary for resume operations, `StatusController` exposes health/status, and `FrontendController` likely supports serving the SPA or routing browser requests back to the React app.

6. The backend domain is modeled explicitly in `model/` with classes like `ResumeData`, `Headers`, `Education`, `WorkExperience`, `ProjectExperience`, `ProjectDetail`, `Certification`, `Credit`, `SkillRequest`, and `SkillResponse`. This is the core contract between the frontend, the service layer, and any AI/document-generation steps.

7. `ResumeService` is the main orchestration layer. Based on the surrounding files, it likely coordinates parsing/standardization, AI calls for skill extraction or normalization, and transformation into the final structured resume model. `DownloadService` handles export, most likely turning the structured data into a DOCX file.

8. The backend’s document-generation boundary is materialized by `src/main/resources/Maveric_Template.docx`. That template is a key architectural asset: the system is not generating resumes from scratch, but filling a predesigned Word template to produce a stable, compatible output.

9. AI integration is isolated enough to have its own error type: `GeminiException`. The presence of `templates/skillPrompt.txt` strongly suggests the backend sends prompt text to an LLM for skill extraction, normalization, or enhancement, and then maps the response into `SkillResponse`/`ResumeData`.

10. Cross-cutting error handling is centralized in `exceptions/ExceptionHandlers.java`, which means controller and service failures are meant to be converted into consistent API responses rather than leaking raw exceptions to the UI.

11. `WebConfig` suggests backend-wide HTTP configuration such as CORS and possibly SPA routing support. `ApplicationStartupListener` indicates some initialization work at boot, likely loading templates, warming services, or preparing runtime state.

12. There is no database in the file tree, so the architecture appears stateless and file/template driven. Persistence is likely limited to in-memory processing and generated downloads, which simplifies deployment but means the backend is a transformation pipeline rather than a CRUD service.

13. Operationally, the project is set up for containerless scripting and CI/CD: both subprojects have GitLab CI files, and the backend includes Maven wrapper plus `start.sh/stop.sh/restart.sh`, while the frontend includes Vite tooling and build scripts. The runtime split is standard JVM for the backend and Node.js for the frontend.

14. For an architecture diagram, the main flow is: user interacts with the React editor → frontend sends structured resume data or source content to the Spring API → backend optionally calls an AI provider for normalization/skill extraction → backend merges results into the resume model → DOCX is generated from the Word template → the finished file is returned to the browser for download.

Main entry points: [`resume-standardizer-fe/src/components/ResumeEditor.jsx`](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ResumeEditor.jsx) (Resume editor), [`resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/ResumeService.java`](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/ResumeService.java) (Resume service), [`resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/ResumeController.java`](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/ResumeController.java) (Resume API), [`resume-standardizer-fe/src/App.jsx`](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/App.jsx) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React/Vite UI"]
  node_fe_app["App shell<br/>React SPA<br/>[App.jsx]"]
  node_fe_editor["Resume editor<br/>editor orchestrator<br/>[ResumeEditor.jsx]"]
  node_fe_summary["Summary<br/>section component"]
  node_fe_experience["Experience<br/>section component"]
  node_fe_projects["Projects<br/>section component"]
  node_fe_education["Education<br/>section component"]
  node_fe_extras["Extras<br/>section bundle"]
  node_fe_spinner(("Loading state<br/>UI state"))
  node_fe_original["Original view<br/>UI state<br/>[SeeOriginal.jsx]"]
  node_fe_model[("Structured model<br/>resume schema")]
end

subgraph group_backend["Spring Boot API"]
  node_be_api["Resume API<br/>REST controller"]
  node_be_status["Status API<br/>REST controller"]
  node_be_frontend["Frontend bridge<br/>web controller"]
  node_be_service[("Resume service<br/>orchestration service<br/>[ResumeService.java]")]
  node_be_download["Download service<br/>docx exporter"]
  node_be_domain[("Domain models<br/>data contract<br/>[ResumeData.java]")]
  node_be_ai["AI prompt<br/>llm integration<br/>[skillPrompt.txt]"]
  node_be_template["DOCX template<br/>document template"]
  node_be_errors["Error handling<br/>exception mapper"]
  node_be_config["Web config<br/>app configuration<br/>[WebConfig.java]"]
  node_be_boot(("Startup listener<br/>boot hook"))
end

node_fe_app -->|"renders"| node_fe_editor
node_fe_editor -->|"includes"| node_fe_summary
node_fe_editor -->|"includes"| node_fe_experience
node_fe_editor -->|"includes"| node_fe_projects
node_fe_editor -->|"includes"| node_fe_education
node_fe_editor -->|"includes"| node_fe_extras
node_fe_editor -->|"binds"| node_fe_model
node_fe_editor -->|"submits"| node_be_api
node_fe_original -.->|"alternate view"| node_fe_editor
node_fe_spinner -.->|"waits for"| node_be_api
node_be_api -->|"delegates"| node_be_service
node_be_service -->|"maps to"| node_be_domain
node_be_service -->|"prompts"| node_be_ai
node_be_service -->|"exports"| node_be_download
node_be_download -->|"fills"| node_be_template
node_be_service -.->|"raises"| node_be_errors
node_be_api -->|"exposes"| node_be_status
node_be_frontend -->|"serves"| node_fe_app
node_be_config -.->|"supports"| node_be_frontend
node_be_boot -.->|"initializes"| node_be_service

click node_fe_app "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/App.jsx"
click node_fe_editor "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ResumeEditor.jsx"
click node_fe_summary "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProfessionalSummary.jsx"
click node_fe_experience "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProfessionalExperience.jsx"
click node_fe_projects "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProjectExperience.jsx"
click node_fe_education "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/EducationAndQualifications.jsx"
click node_fe_spinner "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/FullPageSpinner.jsx"
click node_fe_original "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/SeeOriginal.jsx"
click node_fe_model "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/models/FormatterStructured.js"
click node_be_api "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/ResumeController.java"
click node_be_status "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/StatusController.java"
click node_be_frontend "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/FrontendController.java"
click node_be_service "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/ResumeService.java"
click node_be_download "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/DownloadService.java"
click node_be_domain "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/model/ResumeData.java"
click node_be_ai "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/resources/templates/skillPrompt.txt"
click node_be_template "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/resources/Maveric_Template.docx"
click node_be_errors "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/exceptions/ExceptionHandlers.java"
click node_be_config "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/WebConfig.java"
click node_be_boot "https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/ApplicationStartupListener.java"

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_fe_app,node_fe_editor,node_fe_summary,node_fe_experience,node_fe_projects,node_fe_education,node_fe_extras,node_fe_spinner,node_fe_original,node_fe_model toneBlue
class node_be_api,node_be_status,node_be_frontend,node_be_service,node_be_download,node_be_domain,node_be_ai,node_be_template,node_be_errors,node_be_config,node_be_boot toneAmber
```

## Components

### React/Vite UI

Single-page resume editor and presentation layer

- [App shell](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/App.jsx): React SPA · Top-level frontend composition and routing shell · `resume-standardizer-fe/src/App.jsx`
- [Resume editor](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ResumeEditor.jsx): editor orchestrator · Central editable resume view that assembles section components · `resume-standardizer-fe/src/components/ResumeEditor.jsx`
- [Summary](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProfessionalSummary.jsx): section component · Professional summary editing/viewing section · `resume-standardizer-fe/src/components/ProfessionalSummary.jsx`
- [Experience](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProfessionalExperience.jsx): section component · Professional experience section · `resume-standardizer-fe/src/components/ProfessionalExperience.jsx`
- [Projects](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/ProjectExperience.jsx): section component · Project experience section · `resume-standardizer-fe/src/components/ProjectExperience.jsx`
- [Education](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/EducationAndQualifications.jsx): section component · Education and qualifications section · `resume-standardizer-fe/src/components/EducationAndQualifications.jsx`
- **Extras**: section bundle · Certifications, awards, credits, and miscellaneous resume sections
- [Loading state](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/FullPageSpinner.jsx): UI state · Full-page waiting state during backend processing · `resume-standardizer-fe/src/components/FullPageSpinner.jsx`
- [Original view](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/components/SeeOriginal.jsx): UI state · Displays the source or original resume content · `resume-standardizer-fe/src/components/SeeOriginal.jsx`
- [Structured model](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-fe/src/models/FormatterStructured.js): resume schema · Normalized frontend data shape used for editing and API payloads · `resume-standardizer-fe/src/models/FormatterStructured.js`

### Spring Boot API

Resume transformation, AI enrichment, and DOCX export

- [Resume API](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/ResumeController.java): REST controller · Main API boundary for resume standardization and export · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/ResumeController.java`
- [Status API](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/StatusController.java): REST controller · Health and status endpoint · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/StatusController.java`
- [Frontend bridge](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/FrontendController.java): web controller · Serves the SPA or supports browser routing · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/controller/FrontendController.java`
- [Resume service](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/ResumeService.java): orchestration service · Coordinates parsing, AI enrichment, normalization, and model assembly · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/ResumeService.java`
- [Download service](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/DownloadService.java): docx exporter · Generates downloadable resume output from structured data · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/service/DownloadService.java`
- [Domain models](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/model/ResumeData.java): data contract · Structured resume and skill request/response classes · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/model/ResumeData.java`
- [AI prompt](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/resources/templates/skillPrompt.txt): llm integration · Prompt template and AI-specific error boundary for skill enrichment · `resume-standardizer-be/src/main/resources/templates/skillPrompt.txt`
- [DOCX template](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/resources/Maveric_Template.docx): document template · Word template used to render the final resume output · `resume-standardizer-be/src/main/resources/Maveric_Template.docx`
- [Error handling](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/exceptions/ExceptionHandlers.java): exception mapper · Converts backend failures into consistent API responses · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/exceptions/ExceptionHandlers.java`
- [Web config](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/WebConfig.java): app configuration · HTTP and SPA-related backend configuration · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/WebConfig.java`
- [Startup listener](https://github.com/dhananjaylab/resume_app/blob/main/resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/ApplicationStartupListener.java): boot hook · Application startup initialization logic · `resume-standardizer-be/src/main/java/com/example/ExampleApiDemo/ApplicationStartupListener.java`

## Connections

- App shell → Resume editor: renders · App shell composes the main editing experience
- Resume editor → Summary: includes · Editor assembles the summary section
- Resume editor → Experience: includes · Editor assembles the experience section
- Resume editor → Projects: includes · Editor assembles the projects section
- Resume editor → Education: includes · Editor assembles the education section
- Resume editor → Extras: includes · Editor assembles additional sections
- Resume editor → Structured model: binds · UI edits a normalized resume structure
- Resume editor → Resume API: submits · Structured resume content is sent for processing
- Original view → Resume editor: alternate view · Original content is shown alongside the editor flow
- Loading state → Resume API: waits for · Loading state reflects asynchronous backend work
- Resume API → Resume service: delegates · Controller forwards resume operations to the orchestration layer
- Resume service → Domain models: maps to · Service assembles and transforms structured resume data
- Resume service → AI prompt: prompts · Service uses LLM prompt text for enrichment or normalization
- Resume service → Download service: exports · Service hands structured data to the document exporter
- Download service → DOCX template: fills · Exporter renders the final DOCX from the Word template
- Resume service → Error handling: raises · Service failures are normalized through backend exception handling
- Resume API → Status API: exposes · Status endpoint provides service health visibility
- Frontend bridge → App shell: serves · Backend supports browser delivery of the SPA
- Web config → Frontend bridge: supports · Configuration likely handles routing and cross-origin behavior
- Startup listener → Resume service: initializes · Startup hook prepares application state for resume processing
