# angelmartinez18/reto-vocacional-echo2026 architecture

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

- Interactive diagram: https://gitdiagram.com/angelmartinez18/reto-vocacional-echo2026
- Repository: https://github.com/angelmartinez18/reto-vocacional-echo2026

## Overview

#### Purpose and scope
Nort is a Flutter-based, gamified vocational-guidance mobile app for Nicaraguan users aged 14–20. Its intended product areas include career simulations, vocational tests, personal dashboards, and audiovisual content. The repository currently establishes the application shell and a Clean Architecture-oriented module layout; feature implementation is largely scaffolded.

#### Runtime entry points
Flutter/Dart is the primary runtime, beginning at `lib/main.dart`. Native host applications bootstrap the Flutter engine on Android and iOS through `android/app/src/main/kotlin/com/example/reto_vocacional_echo2026/MainActivity.kt` and `ios/Runner/AppDelegate.swift`. A web deployment shell is also present at `web/index.html`.

#### Feature-oriented Clean Architecture
Application code is organized by feature under `lib/caracteristicas`, with each feature intended to separate:
- data: remote/local implementations and DTOs,
- domain: business rules, entities, and repository contracts,
- presentation: Flutter screens and state/UI logic.

Authentication is the only named feature scaffold: `lib/caracteristicas/Autenticacion/datos`, `lib/caracteristicas/Autenticacion/dominio`, and `lib/caracteristicas/Autenticacion/presentacion`. Future vocational-test, simulation, dashboard, and media features should follow this boundary rather than couple UI directly to Supabase.

#### Shared core boundary
Cross-cutting concerns belong in `lib/nucleo`, preventing feature modules from owning global infrastructure. Defined ownership areas are global errors (`lib/nucleo/errores`), dependency assembly (`lib/nucleo/inyeccion`), networking/backend setup (`lib/nucleo/red`), visual identity (`lib/nucleo/tema`), and reusable utilities (`lib/nucleo/utilidades`). These directories are currently placeholders, so their interfaces and initialization flow remain to be implemented.

#### Backend and external services
Supabase is the intended backend boundary, using PostgreSQL for persisted application data, Supabase Auth for identity/session flows, and Supabase Storage for media. The Flutter client dependency is declared through `pubspec.yaml`; configuration is expected from `.env` values such as `SUPABASE_URL` and `SUPABASE_ANON_KEY`, loaded with `flutter_dotenv`. No server-side code, database migrations, API endpoints, or concrete Supabase initialization files exist in the supplied tree.

#### Primary control and data flow
The expected flow is: native/web host starts Flutter → `lib/main.dart` configures shared runtime concerns → presentation modules invoke domain use cases/contracts → data modules call Supabase → results return through domain abstractions to update UI. Authentication should gate user-specific guidance data, while Storage-backed audiovisual material is consumed by presentation features through the same data/domain boundary.

#### Platform packaging
Android is a Gradle/Kotlin Flutter host rooted at `android/app/build.gradle.kts`; iOS is an Xcode Runner host rooted at `ios/Runner.xcodeproj/project.pbxproj`. Platform manifests, assets, launch screens, and native lifecycle code remain outside the Dart feature architecture and should stay thin unless device-specific capabilities require integration.

Main entry points: [`lib/main.dart`](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/lib/main.dart) (Flutter entry point), [`lib/caracteristicas`](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas) (Guidance feature modules), [`lib/nucleo/red`](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/red) (Backend setup), [`lib/caracteristicas/Autenticacion/datos`](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/datos) (Auth data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hosts["Platform hosts"]
  node_android["Android host<br/>Kotlin / Gradle<br/>[MainActivity.kt]"]
  node_ios["iOS host<br/>Swift / Xcode<br/>[AppDelegate.swift]"]
  node_web["Web host<br/>HTML shell<br/>[index.html]"]
end

subgraph group_app["Flutter application"]
  node_main["Flutter entry point<br/>Dart bootstrap<br/>[main.dart]"]
  node_core_di["Dependency assembly<br/>core boundary"]
  node_core_network["Backend setup<br/>core boundary"]
  node_core_errors["Global errors<br/>core boundary"]
  node_core_theme["Theme and identity<br/>core boundary"]
  node_core_utilities["Shared utilities<br/>core boundary"]
  node_guidance_features["Guidance feature modules<br/>Clean Architecture features"]
end

subgraph group_auth["Authentication feature"]
  node_auth_presentation["Auth presentation<br/>Flutter UI/state"]
  node_auth_domain{{"Auth domain<br/>entities and contracts"}}
  node_auth_data["Auth data<br/>DTOs and implementations"]
end

subgraph group_backend["Supabase services"]
  node_supabase_auth(("Supabase Auth<br/>identity service"))
  node_supabase_db[("Supabase PostgreSQL<br/>application data")]
  node_supabase_storage[("Supabase Storage<br/>media service")]
end

node_env["Runtime environment<br/>dotenv configuration"]
node_pubspec["Flutter dependencies<br/>package manifest<br/>[pubspec.yaml]"]

node_android -->|"boots Flutter"| node_main
node_ios -->|"boots Flutter"| node_main
node_web -->|"loads Flutter"| node_main
node_main -->|"initializes"| node_core_di
node_main -->|"configures"| node_core_network
node_main -->|"applies"| node_core_theme
node_core_di -->|"provides dependencies"| node_auth_presentation
node_core_network -->|"reads settings"| node_env
node_pubspec -.->|"supplies client packages"| node_core_network
node_auth_presentation -->|"invokes use cases"| node_auth_domain
node_auth_domain -->|"uses repository contract"| node_auth_data
node_auth_data -->|"uses client setup"| node_core_network
node_core_network -->|"auth requests"| node_supabase_auth
node_auth_data -->|"identity and session"| node_supabase_auth
node_guidance_features -->|"uses shared assembly"| node_core_di
node_guidance_features -->|"uses error policy"| node_core_errors
node_guidance_features -->|"uses shared helpers"| node_core_utilities
node_guidance_features -->|"persists guidance data"| node_supabase_db
node_guidance_features -->|"consumes media"| node_supabase_storage
node_supabase_auth -.->|"gates user data"| node_supabase_db

click node_android "https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/android/app/src/main/kotlin/com/example/reto_vocacional_echo2026/MainActivity.kt"
click node_ios "https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/ios/Runner/AppDelegate.swift"
click node_web "https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/web/index.html"
click node_main "https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/lib/main.dart"
click node_core_di "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/inyeccion"
click node_core_network "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/red"
click node_core_errors "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/errores"
click node_core_theme "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/tema"
click node_core_utilities "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/utilidades"
click node_auth_presentation "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/presentacion"
click node_auth_domain "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/dominio"
click node_auth_data "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/datos"
click node_guidance_features "https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas"
click node_pubspec "https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/pubspec.yaml"

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_android,node_ios,node_web toneBlue
class node_main,node_core_di,node_core_network,node_core_errors,node_core_theme,node_core_utilities,node_guidance_features toneAmber
class node_auth_presentation,node_auth_domain,node_auth_data toneMint
class node_supabase_auth,node_supabase_db,node_supabase_storage toneRose
class node_env,node_pubspec toneNeutral
```

## Components

### Platform hosts

- [Android host](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/android/app/src/main/kotlin/com/example/reto_vocacional_echo2026/MainActivity.kt): Kotlin / Gradle · `android/app/src/main/kotlin/com/example/reto_vocacional_echo2026/MainActivity.kt`
- [iOS host](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/ios/Runner/AppDelegate.swift): Swift / Xcode · `ios/Runner/AppDelegate.swift`
- [Web host](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/web/index.html): HTML shell · `web/index.html`

### Flutter application

- [Flutter entry point](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/lib/main.dart): Dart bootstrap · Configures the shared runtime before rendering the app. · `lib/main.dart`
- [Dependency assembly](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/inyeccion): core boundary · `lib/nucleo/inyeccion`
- [Backend setup](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/red): core boundary · `lib/nucleo/red`
- [Global errors](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/errores): core boundary · `lib/nucleo/errores`
- [Theme and identity](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/tema): core boundary · `lib/nucleo/tema`
- [Shared utilities](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/nucleo/utilidades): core boundary · `lib/nucleo/utilidades`
- [Guidance feature modules](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas): Clean Architecture features · Future tests, simulations, dashboards, and media follow the same layers. · `lib/caracteristicas`

### Authentication feature

- [Auth presentation](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/presentacion): Flutter UI/state · `lib/caracteristicas/Autenticacion/presentacion`
- [Auth domain](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/dominio): entities and contracts · Owns business rules and repository abstractions. · `lib/caracteristicas/Autenticacion/dominio`
- [Auth data](https://github.com/angelmartinez18/reto-vocacional-echo2026/tree/main/lib/caracteristicas/Autenticacion/datos): DTOs and implementations · `lib/caracteristicas/Autenticacion/datos`

### Supabase services

- **Supabase Auth**: identity service
- **Supabase PostgreSQL**: application data
- **Supabase Storage**: media service

### Other components

- **Runtime environment**: dotenv configuration · Provides Supabase URL and anonymous key.
- [Flutter dependencies](https://github.com/angelmartinez18/reto-vocacional-echo2026/blob/main/pubspec.yaml): package manifest · Declares Supabase and dotenv client dependencies. · `pubspec.yaml`

## Connections

- Android host → Flutter entry point: boots Flutter
- iOS host → Flutter entry point: boots Flutter
- Web host → Flutter entry point: loads Flutter
- Flutter entry point → Dependency assembly: initializes
- Flutter entry point → Backend setup: configures
- Flutter entry point → Theme and identity: applies
- Dependency assembly → Auth presentation: provides dependencies
- Backend setup → Runtime environment: reads settings
- Flutter dependencies → Backend setup: supplies client packages
- Auth presentation → Auth domain: invokes use cases
- Auth domain → Auth data: uses repository contract
- Auth data → Backend setup: uses client setup
- Backend setup → Supabase Auth: auth requests
- Auth data → Supabase Auth: identity and session
- Guidance feature modules → Dependency assembly: uses shared assembly
- Guidance feature modules → Global errors: uses error policy
- Guidance feature modules → Shared utilities: uses shared helpers
- Guidance feature modules → Supabase PostgreSQL: persists guidance data
- Guidance feature modules → Supabase Storage: consumes media
- Supabase Auth → Supabase PostgreSQL: gates user data
