How edwardblanco/proyecto-agro works
SENAgro is presented as an agricultural-records demo frontend: users sign in, view a dashboard, and consult or manage farm records stored in browser localStorage. The tree also contains an Express/MongoDB API, although the README explicitly describes the frontend as standalone and says it has no API connection; these are therefore shown as separate systems. Frontend links beyond README-documented responsibilities are marked unverified or omitted because their call sites were not sampled.
Main entry points: app.js API application · RecordsPage.vue Agricultural records · AppLayout.vue App navigation · users.controller.js User controller
Components 29
Frontend experience
- Demo login
frontend/src/features/auth/pages/LoginPage.vue - Routes and guards
frontend/src/router/index.js - App navigation
frontend/src/layouts/AppLayout.vue - Dashboard
frontend/src/features/dashboard/pages/DashboardPage.vue - Agricultural records
frontend/src/features/records/pages/RecordsPage.vue - Cycle details
frontend/src/features/records/pages/CycleDetailPage.vue - Record configuration
frontend/src/features/records/config.js
Local demo data
- Session state
frontend/src/stores/auth.js - Farm operations
frontend/src/services/farms.service.js - User operations
frontend/src/services/users.service.js - Local persistence
frontend/src/services/storage.js - Production conversion
frontend/src/services/production.js - API client
frontend/src/services/api.js
Backend API
- API application
backend/src/app.js - Authentication routes
backend/src/routes/auth.routes.js - User routes
backend/src/routes/users.routes.js - Farm routes
backend/src/routes/farms.routes.js - Dashboard routes
backend/src/routes/dashboard.routes.js
API domain
- Authentication controller
backend/src/controllers/auth.controller.js - User controller
backend/src/controllers/users.controller.js - Farm controller
backend/src/controllers/farms.controller.js - User service
backend/src/services/users.service.js - Farm service
backend/src/services/farms.service.js - User model
backend/src/models/User.model.js - Farm model
backend/src/models/Farm.model.js
API platform
- Database connection
backend/src/config/db.js - Demo seed data
backend/src/config/seed.js - HTTP responses
backend/src/shared/http/response.js
Other components
- User
Connections 32
- User → Demo login: signs in
- User → Dashboard: views summary
- User → Agricultural records: manages records
- Demo login → Session state: updates session
- Routes and guards → Demo login: guards access
- Routes and guards → App navigation: routes through
- App navigation → Dashboard: navigates to
- App navigation → Agricultural records: navigates to
- Agricultural records → Cycle details: opens cycles
- Agricultural records → Record configuration: uses fields
- Agricultural records → Farm operations: uses operations
- Agricultural records → User operations: uses operations
- Farm operations → Local persistence: persists locally
- User operations → Local persistence: persists locally
- Session state → Local persistence: persists session
- Agricultural records → Production conversion: converts output
- API application → Authentication routes: mounts routes
backend/src/app.js - API application → User routes: mounts routes
backend/src/app.js - API application → Farm routes: mounts routes
backend/src/app.js - API application → Dashboard routes: mounts routes
backend/src/app.js - Authentication routes → Authentication controller: dispatches to
backend/src/routes/auth.routes.js - User routes → User controller: dispatches to
backend/src/routes/users.routes.js - Farm routes → Farm controller: dispatches to
backend/src/routes/farms.routes.js - Dashboard routes → API application: mounted by
backend/src/app.js - User controller → User service: calls
backend/src/controllers/users.controller.js - Farm controller → Farm service: calls
backend/src/controllers/farms.controller.js - User service → User model: uses model
backend/src/services/users.service.js - Farm service → Farm model: uses model
backend/src/services/farms.service.js - User controller → HTTP responses: formats response
backend/src/controllers/users.controller.js - Farm controller → HTTP responses: formats response
backend/src/controllers/farms.controller.js - API application → Database connection: initializes
- API application → Demo seed data: loads seed