How angelmartinez18/reto-vocacional-echo2026 works
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: main.dart Flutter entry point · caracteristicas Guidance feature modules · red Backend setup · datos Auth data
Components 18
Platform hosts
- Android host
android/app/src/main/kotlin/com/example/reto_vocacional_echo2026/MainActivity.kt - iOS host
ios/Runner/AppDelegate.swift - Web host
web/index.html
Flutter application
- Flutter entry point · Configures the shared runtime before rendering the app.
lib/main.dart - Dependency assembly
lib/nucleo/inyeccion - Backend setup
lib/nucleo/red - Global errors
lib/nucleo/errores - Theme and identity
lib/nucleo/tema - Shared utilities
lib/nucleo/utilidades - Guidance feature modules · Future tests, simulations, dashboards, and media follow the same layers.
lib/caracteristicas
Authentication feature
- Auth presentation
lib/caracteristicas/Autenticacion/presentacion - Auth domain · Owns business rules and repository abstractions.
lib/caracteristicas/Autenticacion/dominio - Auth data
lib/caracteristicas/Autenticacion/datos
Supabase services
- Supabase Auth
- Supabase PostgreSQL
- Supabase Storage
Other components
- Runtime environment · Provides Supabase URL and anonymous key.
- Flutter dependencies · Declares Supabase and dotenv client dependencies.
pubspec.yaml
Connections 20
- 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