How aymen-bendhaiba/pad_lock- works
This is a lock-management product: operators authenticate, monitor lock locations and alerts, configure locks and geofences, issue device commands, and review reports. The backend exposes domain APIs, while a separate TCP subsystem and JT701D protocol modules support device communication. The sampled controllers explicitly delegate to their services; source for most frontend components and backend service internals was not provided, so their internal wiring and persistence links are omitted.
Main entry points: auth.service.ts Auth service · dashboard.controller.ts Dashboard API · auth.controller.ts Authentication API · locks.controller.ts Lock API
Components 31
Operator interface
- Dashboard
pad_lock_front/app/dashboard/dashboard-panel.tsx - Live map
pad_lock_front/app/live-map/live-map-panel.tsx - Geofence workspace
pad_lock_front/app/geofence/geofence-workspace.tsx - Alarms
pad_lock_front/app/alarms/alarms-panel.tsx - Commands
pad_lock_front/app/commands/commands-panel.tsx - Configurations
pad_lock_front/app/configurations/configurations-panel.tsx - Reports
pad_lock_front/app/reports/reports-panel.tsx
Identity
- Authentication API
pad_lock_back/src/auth/auth.controller.ts - Auth service
pad_lock_back/src/auth/auth.service.ts - User service
pad_lock_back/src/users/users.service.ts
Lock operations
- Lock API
pad_lock_back/src/locks/locks.controller.ts - Lock service
pad_lock_back/src/locks/locks.service.ts - Command API
pad_lock_back/src/commands/commands.controller.ts - Command service
pad_lock_back/src/commands/commands.service.ts - RFID API
pad_lock_back/src/rfid/rfid.controller.ts - RFID service
pad_lock_back/src/rfid/rfid.service.ts - Lock configuration API
pad_lock_back/src/lock-configurations/lock-configurations.controller.ts - Geofence API
pad_lock_back/src/geofences/geofences.controller.ts - Geofence service
pad_lock_back/src/geofences/geofences.service.ts - Boundary API
pad_lock_back/src/geo-boundaries/geo-boundaries.controller.ts
Monitoring and insights
- Position API
pad_lock_back/src/positions/positions.controller.ts - Lock events API
pad_lock_back/src/lock-events/lock-events.controller.ts - Lock events service
pad_lock_back/src/lock-events/lock-events.service.ts - Dashboard API
pad_lock_back/src/dashboard/dashboard.controller.ts - Reports API
pad_lock_back/src/reports/reports.controller.ts
Device transport
- TCP gateway
pad_lock_back/src/tcp/tcp-gateway.service.ts - TCP connections
pad_lock_back/src/tcp/tcp-connections.service.ts - JT701D ASCII parser
pad_lock_back/src/tcp/parsers/jt701d-ascii.parser.ts - JT701D binary parser
pad_lock_back/src/tcp/parsers/jt701d-binary.parser.ts - JT701D commands
pad_lock_back/src/protocol/jt701d-commands.ts
Other components
- Operator
Connections 15
- Operator → Dashboard: views
- Operator → Live map: monitors
- Operator → Geofence workspace: manages
- Operator → Alarms: reviews
- Operator → Commands: issues
- Operator → Configurations: configures
- Operator → Reports: reviews
- Authentication API → Auth service: delegates
- Auth service → User service: looks up users
- Lock API → Lock service: delegates
- Command API → Command service: delegates
- RFID API → RFID service: delegates
- Geofence API → Geofence service: delegates
- Lock events API → Lock events service: delegates
- Dashboard API → Dashboard API