# robertoyz/projeto-escola-ti- architecture

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

- Interactive diagram: https://gitdiagram.com/robertoyz/projeto-escola-ti-
- Repository: https://github.com/robertoyz/projeto-escola-ti-

## Overview

Anjo Nexus is a SaaS platform for finding Brazilian innovation-funding calls and managing agencies’ startup portfolios and funding proposals. Users discover and review scraped edital opportunities, move selected calls into a Kanban workflow, and can generate proposal drafts; agencies also manage teams, subscriptions, and startup profiles. The README documents scraping, PDF extraction, queued AI analysis, payments, and emerging matching/minuta features. Several links below reflect README-level capabilities; sampled source was limited, so unverified implementation details are omitted.

Main entry points: [`MVPs/Versão Atual/back/routes/api.php`](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/routes/api.php) (Laravel API), [`MVPs/Versão Atual/back/app/Http/Controllers/MinutaController.php`](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/MinutaController.php) (Minuta endpoints), [`MVPs/Versão Atual/back/app/Http/Controllers/AssinaturaController.php`](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/AssinaturaController.php) (Subscription management), [`MVPs/Versão Atual/back/app/Jobs/AnalyzeEditalWithIA.php`](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Jobs/AnalyzeEditalWithIA.php) (AI edital analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Edital Radar"]
  node_editalui["Edital browsing<br/>[servicoEditais.js]"]
  node_spiders["Funding spiders"]
  node_sync["Radar sync commands<br/>[SyncAllEditais.php]"]
  node_pdf["PDF extraction"]
  node_analysisjob["AI edital analysis"]
  node_deepseek["AI provider service"]
  node_editaldata[("Edital records<br/>[Edital.php]")]
end

subgraph group_workspace["Agency Workspace"]
  node_startupdata[("Startup profiles<br/>[Startup.php]")]
  node_agencydata[("Agency and plans<br/>[Agencia.php]")]
  node_users[("Team accounts<br/>[User.php]")]
end

subgraph group_proposal["Proposal Workflow"]
  node_kanban["Kanban pipeline<br/>[KanbanService.php]"]
  node_minutacontroller["Minuta endpoints"]
  node_minutaai["AI minuta drafting"]
  node_minutadata[("Proposal drafts<br/>[Minuta.php]")]
  node_export["Document export"]
end

subgraph group_billing["SaaS Billing"]
  node_subscription["Subscription management"]
  node_paymentservice["Payment service"]
  node_paymentadapter["Payment adapter"]
end

subgraph group_clients["Client Apps"]
  node_webapp["Web client<br/>[app.js]"]
  node_mobileapp["Mobile client<br/>[app.js]"]
  node_api["Laravel API<br/>[api.php]"]
end

node_user(("Agency user"))
node_gateway{{"AbacatePay"}}

node_user -->|"uses"| node_webapp
node_user -->|"uses"| node_mobileapp
node_webapp -->|"calls API"| node_api
node_mobileapp -->|"calls API"| node_api
node_webapp -->|"uses"| node_editalui
node_sync -->|"runs radar"| node_spiders
node_spiders -->|"extracts PDFs"| node_pdf
node_pdf -->|"queues analysis"| node_analysisjob
node_analysisjob -.->|"uses AI"| node_deepseek
node_analysisjob -.->|"stores analysis"| node_editaldata
node_editalui -->|"requests edital data"| node_api
node_api -.->|"manages profiles"| node_startupdata
node_api -.->|"manages agencies"| node_agencydata
node_api -.->|"authenticates users"| node_users
node_api -.->|"manages pipeline"| node_kanban
node_user -.->|"requests draft"| node_minutacontroller
node_minutacontroller -->|"generates draft"| node_minutaai
node_minutacontroller -->|"manages drafts"| node_minutadata
node_minutacontroller -->|"exports document"| node_export
node_subscription -->|"creates charges"| node_paymentservice
node_subscription -->|"uses adapter"| node_paymentadapter
node_paymentservice -->|"normalizes payload"| node_paymentadapter
node_paymentservice -->|"calls gateway"| node_gateway
node_subscription -->|"updates subscription"| node_agencydata

click node_webapp "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/front/js/app.js"
click node_mobileapp "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/mobile/www/js/app.js"
click node_api "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/routes/api.php"
click node_editalui "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/front/scripts/servicos/servicoEditais.js"
click node_spiders "https://github.com/robertoyz/projeto-escola-ti-/tree/main/MVPs/Vers%C3%A3o%20Atual/back/app/Spiders"
click node_sync "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Console/Commands/SyncAllEditais.php"
click node_pdf "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/PdfExtractorService.php"
click node_analysisjob "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Jobs/AnalyzeEditalWithIA.php"
click node_deepseek "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/DeepSeekService.php"
click node_editaldata "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Edital.php"
click node_startupdata "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Startup.php"
click node_agencydata "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Agencia.php"
click node_users "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/User.php"
click node_kanban "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/KanbanService.php"
click node_minutacontroller "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/MinutaController.php"
click node_minutaai "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/MinutaAiService.php"
click node_minutadata "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Minuta.php"
click node_export "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/DocumentExportService.php"
click node_subscription "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/AssinaturaController.php"
click node_paymentservice "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/AbacatePayService.php"
click node_paymentadapter "https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Adapters/AbacatePayAdapter.php"

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_editalui,node_spiders,node_sync,node_pdf,node_analysisjob,node_deepseek,node_editaldata,node_user toneBlue
class node_startupdata,node_agencydata,node_users toneAmber
class node_kanban,node_minutacontroller,node_minutaai,node_minutadata,node_export toneMint
class node_subscription,node_paymentservice,node_paymentadapter toneRose
class node_webapp,node_mobileapp,node_api,node_gateway toneIndigo
```

## Components

### Edital Radar

- [Edital browsing](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/front/scripts/servicos/servicoEditais.js): `MVPs/Versão Atual/front/scripts/servicos/servicoEditais.js`
- [Funding spiders](https://github.com/robertoyz/projeto-escola-ti-/tree/main/MVPs/Vers%C3%A3o%20Atual/back/app/Spiders): `MVPs/Versão Atual/back/app/Spiders`
- [Radar sync commands](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Console/Commands/SyncAllEditais.php): `MVPs/Versão Atual/back/app/Console/Commands/SyncAllEditais.php`
- [PDF extraction](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/PdfExtractorService.php): `MVPs/Versão Atual/back/app/Services/PdfExtractorService.php`
- [AI edital analysis](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Jobs/AnalyzeEditalWithIA.php): `MVPs/Versão Atual/back/app/Jobs/AnalyzeEditalWithIA.php`
- [AI provider service](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/DeepSeekService.php): `MVPs/Versão Atual/back/app/Services/DeepSeekService.php`
- [Edital records](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Edital.php): `MVPs/Versão Atual/back/app/Models/Edital.php`

### Agency Workspace

- [Startup profiles](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Startup.php): `MVPs/Versão Atual/back/app/Models/Startup.php`
- [Agency and plans](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Agencia.php): `MVPs/Versão Atual/back/app/Models/Agencia.php`
- [Team accounts](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/User.php): `MVPs/Versão Atual/back/app/Models/User.php`

### Proposal Workflow

- [Kanban pipeline](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/KanbanService.php): `MVPs/Versão Atual/back/app/Services/KanbanService.php`
- [Minuta endpoints](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/MinutaController.php): `MVPs/Versão Atual/back/app/Http/Controllers/MinutaController.php`
- [AI minuta drafting](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/MinutaAiService.php): `MVPs/Versão Atual/back/app/Services/MinutaAiService.php`
- [Proposal drafts](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Models/Minuta.php): `MVPs/Versão Atual/back/app/Models/Minuta.php`
- [Document export](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/DocumentExportService.php): `MVPs/Versão Atual/back/app/Services/DocumentExportService.php`

### SaaS Billing

- [Subscription management](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Http/Controllers/AssinaturaController.php): `MVPs/Versão Atual/back/app/Http/Controllers/AssinaturaController.php`
- [Payment service](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Services/AbacatePayService.php): `MVPs/Versão Atual/back/app/Services/AbacatePayService.php`
- [Payment adapter](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/app/Adapters/AbacatePayAdapter.php): `MVPs/Versão Atual/back/app/Adapters/AbacatePayAdapter.php`

### Client Apps

- [Web client](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/front/js/app.js): `MVPs/Versão Atual/front/js/app.js`
- [Mobile client](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/mobile/www/js/app.js): `MVPs/Versão Atual/mobile/www/js/app.js`
- [Laravel API](https://github.com/robertoyz/projeto-escola-ti-/blob/main/MVPs/Vers%C3%A3o%20Atual/back/routes/api.php): `MVPs/Versão Atual/back/routes/api.php`

### Other components

- **Agency user**
- **AbacatePay**

## Connections

- Agency user → Web client: uses
- Agency user → Mobile client: uses
- Web client → Laravel API: calls API
- Mobile client → Laravel API: calls API
- Web client → Edital browsing: uses (evidence: `MVPs/Versão Atual/front/js/app.js`)
- Radar sync commands → Funding spiders: runs radar
- Funding spiders → PDF extraction: extracts PDFs
- PDF extraction → AI edital analysis: queues analysis
- AI edital analysis → AI provider service: uses AI
- AI edital analysis → Edital records: stores analysis
- Edital browsing → Laravel API: requests edital data
- Laravel API → Startup profiles: manages profiles
- Laravel API → Agency and plans: manages agencies
- Laravel API → Team accounts: authenticates users
- Laravel API → Kanban pipeline: manages pipeline
- Agency user → Minuta endpoints: requests draft
- Minuta endpoints → AI minuta drafting: generates draft (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/MinutaController.php`)
- Minuta endpoints → Proposal drafts: manages drafts (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/MinutaController.php`)
- Minuta endpoints → Document export: exports document (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/MinutaController.php`)
- Subscription management → Payment service: creates charges (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/AssinaturaController.php`)
- Subscription management → Payment adapter: uses adapter (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/AssinaturaController.php`)
- Payment service → Payment adapter: normalizes payload (evidence: `MVPs/Versão Atual/back/app/Services/AbacatePayService.php`)
- Payment service → AbacatePay: calls gateway (evidence: `MVPs/Versão Atual/back/app/Services/AbacatePayService.php`)
- Subscription management → Agency and plans: updates subscription (evidence: `MVPs/Versão Atual/back/app/Http/Controllers/AssinaturaController.php`)
