How eddijanus-lgtm/mes11 works
This is a manufacturing execution system (MES) with a React operations console and a NestJS backend. Users navigate dashboards and production-management pages; backend endpoints support orders and routing, machine and carrier management, alarms, notifications, shifts, traces, and materials. Shopfloor integrations exchange telemetry and control commands with OPC-UA and MQTT systems. The README documents a simulated three-station production run using the regular OPC-UA client and handshake. Several frontend-to-API links and unsampled subsystem internals are not evidenced in the excerpts, so they are omitted.
Main entry points: App.jsx Route shell · shopfloor-gateway.controller.ts Gateway endpoints · orders.controller.ts Orders endpoints · dashboard.controller.ts Dashboard endpoints
Components 27
Operations console
- Route shell
frontend/src/App.jsx - Dashboard view
frontend/src/pages/Dashboard.jsx - Machines view
frontend/src/pages/Machines.jsx - Orders view
frontend/src/pages/Orders.jsx - Shopfloor view
frontend/src/pages/Shopfloor.jsx - Notifications view
frontend/src/pages/Notifications.jsx - Session provider
frontend/src/providers/AuthProvider.jsx
Production operations
- Orders endpoints
src/orders/orders.controller.ts - Order routing
src/orders/routing.service.ts - Machine endpoints
src/machines/machines.controller.ts - Carrier endpoints
src/carriers/carriers.controller.ts - Materials endpoints
src/materials/materials.controller.ts
Monitoring and records
- Dashboard endpoints
src/dashboard/dashboard.controller.ts - KPI aggregation
src/dashboard/dashboard.service.ts - Alarm endpoints
src/alarms/alarms.controller.ts - Notification endpoints
src/notifications/notifications.controller.ts - Alert and delivery logic
src/notifications/notifications.service.ts - Trace records
src/traces/traces.service.ts - Shift reporting
src/shifts/shifts.service.ts
Shopfloor integration
- Gateway endpoints
src/opcua/shopfloor-gateway.controller.ts - OPC-UA client
src/opcua/opcua.service.ts - MQTT gateway
src/opcua/mqtt-gateway.service.ts - stMES handshake
src/opcua/stmes-handshake.service.ts
Identity and access
- User accounts
src/users/user.entity.ts - Authentication endpoints
src/auth/auth.controller.ts - Authentication service
src/auth/auth.service.ts
Other components
- MES operator
Connections 31
- MES operator → Route shell: uses
frontend/src/App.jsx - Route shell → Dashboard view: routes to
frontend/src/App.jsx - Route shell → Machines view: routes to
frontend/src/App.jsx - Route shell → Orders view: routes to
frontend/src/App.jsx - Route shell → Shopfloor view: routes to
frontend/src/App.jsx - Route shell → Notifications view: routes to
frontend/src/App.jsx - Route shell → Session provider: checks session
frontend/src/App.jsx - MES operator → Orders endpoints: requests
src/orders/orders.controller.ts - Orders endpoints → Order routing: delegates route
src/orders/orders.controller.ts - MES operator → Machine endpoints: requests
src/machines/machines.controller.ts - MES operator → Carrier endpoints: requests
src/carriers/carriers.controller.ts - MES operator → Materials endpoints: requests
src/materials/materials.controller.ts - MES operator → Dashboard endpoints: requests
src/dashboard/dashboard.controller.ts - Dashboard endpoints → KPI aggregation: delegates metrics
src/dashboard/dashboard.controller.ts - KPI aggregation → Orders endpoints: reads order data
src/dashboard/dashboard.service.ts - MES operator → Alarm endpoints: requests
src/alarms/alarms.controller.ts - MES operator → Notification endpoints: requests
src/notifications/notifications.controller.ts - Notification endpoints → Alert and delivery logic: delegates actions
src/notifications/notifications.controller.ts - Alert and delivery logic → MQTT gateway: uses gateway
src/notifications/notifications.service.ts - MES operator → Trace records: requests
- MES operator → Shift reporting: requests
- MES operator → Gateway endpoints: requests
src/opcua/shopfloor-gateway.controller.ts - Gateway endpoints → OPC-UA client: reads and controls
src/opcua/shopfloor-gateway.controller.ts - Gateway endpoints → MQTT gateway: publishes and reads
src/opcua/shopfloor-gateway.controller.ts - Gateway endpoints → stMES handshake: queries handshakes
src/opcua/shopfloor-gateway.controller.ts - MES operator → Authentication endpoints: authenticates
src/auth/auth.controller.ts - Authentication endpoints → Authentication service: delegates auth
src/auth/auth.controller.ts - Authentication service → User accounts: reads and updates
src/auth/auth.service.ts - Route shell → Session provider: provides session
frontend/src/main.jsx - Gateway endpoints → MES operator: returns status
src/opcua/shopfloor-gateway.controller.ts - OPC-UA client → MES operator: connects to simulator