# moises-assuncao/curriculo-direto architecture

> Architecture diagram of the GitHub repository moises-assuncao/curriculo-direto, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/moises-assuncao/curriculo-direto
- Repository: https://github.com/moises-assuncao/curriculo-direto

## Overview

Currículo Direto is a browser-based résumé builder. The primary workflow is landing page → Google sign-in (or local demo mode) → résumé dashboard → editing, preview, and PDF download. The editor covers templates, section ordering, accent color, optional photo, and résumé content; Firebase provides cloud persistence, with localStorage used in demo mode. The README documents PDF export and editor capabilities, while the sampled editor excerpt does not show the export implementation, so that relationship is cited to the README.

Main entry points: [`src/firebase.js`](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/firebase.js) (Firebase client services), [`src/App.jsx`](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/App.jsx) (App routing), [`src/components/ResumeBuilder.jsx`](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/ResumeBuilder.jsx) (Résumé editor), [`src/main.jsx`](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and routing"]
  node_entrypoint["React entry<br/>[main.jsx]"]
  node_app["App routing<br/>[App.jsx]"]
end

subgraph group_experience["User experience"]
  node_home["Landing page<br/>[Home.jsx]"]
  node_dashboard["Résumé dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_resume["Résumé editing"]
  node_editor["Résumé editor<br/>[ResumeBuilder.jsx]"]
end

subgraph group_persistence["Authentication and storage"]
  node_firebase["Firebase client services<br/>[firebase.js]"]
end

node_user(("Résumé creator"))
node_pdf["Downloaded PDF"]
node_auth["Firebase Authentication"]
node_google["Google sign-in"]
node_firestore[("Firestore résumé records")]
node_localstorage[("Browser localStorage")]

node_user -->|"opens app"| node_entrypoint
node_entrypoint -->|"renders"| node_app
node_app -->|"shows signed out"| node_home
node_user -.->|"starts résumé"| node_home
node_app -->|"checks session"| node_firebase
node_firebase -->|"observes sign-in"| node_auth
node_firebase -->|"authenticates with"| node_google
node_app -->|"shows signed in"| node_dashboard
node_app -->|"opens selected résumé"| node_editor
node_dashboard -->|"manages résumé records"| node_firebase
node_editor -->|"loads and saves"| node_firebase
node_firebase -->|"reads and writes"| node_firestore
node_firebase -->|"uses in demo mode"| node_localstorage
node_editor -->|"exports PDF"| node_pdf

click node_entrypoint "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/main.jsx"
click node_app "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/App.jsx"
click node_home "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/Home.jsx"
click node_dashboard "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/Dashboard.jsx"
click node_editor "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/ResumeBuilder.jsx"
click node_firebase "https://github.com/moises-assuncao/curriculo-direto/blob/main/src/firebase.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_entrypoint,node_app toneBlue
class node_home,node_dashboard,node_firestore,node_localstorage toneAmber
class node_editor toneMint
class node_firebase toneRose
class node_user,node_pdf,node_auth,node_google toneIndigo
```

## Components

### App entry and routing

- [React entry](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/main.jsx): `src/main.jsx`
- [App routing](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/App.jsx): `src/App.jsx`

### User experience

- [Landing page](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/Home.jsx): `src/components/Home.jsx`
- [Résumé dashboard](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/Dashboard.jsx): `src/components/Dashboard.jsx`

### Résumé editing

- [Résumé editor](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/components/ResumeBuilder.jsx): `src/components/ResumeBuilder.jsx`

### Authentication and storage

- [Firebase client services](https://github.com/moises-assuncao/curriculo-direto/blob/main/src/firebase.js): `src/firebase.js`

### Other components

- **Résumé creator**
- **Downloaded PDF**
- **Firebase Authentication**
- **Google sign-in**
- **Firestore résumé records**
- **Browser localStorage**

## Connections

- Résumé creator → React entry: opens app (evidence: `src/main.jsx`)
- React entry → App routing: renders (evidence: `src/main.jsx`)
- App routing → Landing page: shows signed out (evidence: `src/App.jsx`)
- Résumé creator → Landing page: starts résumé
- App routing → Firebase client services: checks session (evidence: `src/App.jsx`)
- Firebase client services → Firebase Authentication: observes sign-in (evidence: `src/firebase.js`)
- Firebase client services → Google sign-in: authenticates with (evidence: `src/firebase.js`)
- App routing → Résumé dashboard: shows signed in (evidence: `src/App.jsx`)
- App routing → Résumé editor: opens selected résumé (evidence: `src/App.jsx`)
- Résumé dashboard → Firebase client services: manages résumé records (evidence: `src/components/Dashboard.jsx`)
- Résumé editor → Firebase client services: loads and saves (evidence: `src/components/ResumeBuilder.jsx`)
- Firebase client services → Firestore résumé records: reads and writes (evidence: `src/firebase.js`)
- Firebase client services → Browser localStorage: uses in demo mode (evidence: `src/firebase.js`)
- Résumé editor → Downloaded PDF: exports PDF (evidence: `README.md`)
