How stevencardenas-dev/sincoco works
SINCOCO is a construction-project, inventory, and workforce management web application. Its user workflow begins with role-based sign-in, then uses the web interface to access project planning and operational modules backed by an Express API and MySQL. The README describes authentication and user management as complete, project registration as partially integrated, and many other screens as placeholders despite the broader module tree. The graph preserves those documented capabilities; edges are limited to relationships shown in excerpts, the source index, or README.
Main entry points: repositories Data repositories · App.jsx Web app routes · authService.js Authentication logic · AuthContext.jsx Session context
Components 25
Web application
- Web app routes
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Auth API client
frontend/src/services/auth.js - Project screens
frontend/src/pages/Proyectos.jsx - Project plan
frontend/src/pages/PlanProyecto.jsx - Workforce screens
frontend/src/pages/Personal.jsx - Shared UI
frontend/src/components - Page state hooks
frontend/src/hooks - API services
frontend/src/services - Form state
frontend/src/hooks/useFormulario.js - Resource state
frontend/src/hooks/useRecurso.js - Formatting and errors
frontend/src/lib/errores.js
API and access
- Express API
backend/src/server.js - API routes
backend/src/routes - Authentication logic
backend/src/services/authService.js
Project operations
- Project management
backend/src/services/proyectoService.js - Project planning
backend/src/services
Inventory and workforce
- Workforce management
backend/src/services/trabajadorService.js - Inventory operations
backend/src/services/herramientaService.js - Operational modules
backend/src/services
Persistence and shared layers
- Data repositories
backend/src/repositories - MySQL database
backend/src/db/pool.js - Audit log
backend/src/db/bitacora.js - Shared validation and errors
backend/src/utils/campos.js
Other components
- System user
Connections 24
- System user → Web app routes: opens
README.md - Web app routes → Session context: checks session
frontend/src/App.jsx - Session context → Auth API client: calls
frontend/src/context/AuthContext.jsx - Web app routes → Project screens: routes to
frontend/src/App.jsx - Web app routes → Project plan: routes to
frontend/src/App.jsx - Web app routes → Workforce screens: routes to
frontend/src/App.jsx - Session context → Express API: authenticates via API
frontend/src/context/AuthContext.jsx - Project screens → API services: uses API services
- Project plan → API services: uses API services
frontend/src/pages/PlanProyecto.jsx - Workforce screens → API services: uses API services
frontend/src/pages/Personal.jsx - Page state hooks → Formatting and errors: uses error helpers
frontend/src/hooks/useRecurso.js - Express API → API routes: mounts routes
backend/src/server.js - API routes → Authentication logic: routes auth requests
- Authentication logic → Data repositories: uses user and role stores
backend/src/services/authService.js - Authentication logic → Audit log: records events
backend/src/services/authService.js - Authentication logic → MySQL database: uses session settings
backend/src/services/authService.js - Project management → Data repositories: uses repositories
- Workforce management → Data repositories: uses workforce store
backend/src/services/trabajadorService.js - Inventory operations → Data repositories: uses tool store
backend/src/services/herramientaService.js - Operational modules → Data repositories: persists operational data
backend/src/services/authService.js - Data repositories → MySQL database: queries database
backend/src/repositories/solicitudMaterialRepository.js - Shared validation and errors → MySQL database: validates schema-sized fields
- Form state → Formatting and errors: formats errors
frontend/src/hooks/useFormulario.js - Shared UI → Project screens: supports screens