How rahmadmrhd/qc-app works
QC App is an internal quality-control web application with a Bun/Hono server and MariaDB backend; a companion Electron desktop app and Countrylock device-injection package extend it. The principal workflow is a staff member using the web UI to access operational records and submit actions through server routes into domain services. The graph preserves major README-described product areas and prominent indexed modules. Some subsystem links are omitted because the excerpts do not show their wiring; dashed links indicate relationships that are plausible but not verified here.
Main entry points: routes.ts HTTP and API routes · db.ts MariaDB · main.tsx Web application · main.ts Server runtime
Components 24
User interfaces
- Web application
web/src/main.tsx - Desktop client
desktop/src/main/index.ts
Server platform
- Server runtime
server/src/main.ts - HTTP and API routes
server/src/routes.ts - MariaDB
server/src/core/db.ts - Authentication
server/src/modules/auth
QC operations
- Access administration
server/src/modules/access - Serial workflows
server/src/modules/serial - Serial warehouse
server/src/modules/serialwh - Sticker catalog and stock
server/src/modules/sticker - Handovers
server/src/modules/handover - Postel records
server/src/modules/postel - QR exports
server/src/modules/qrcode - Serial route handlers
server/src/modules/serial/routes.ts - Access route handlers
server/src/modules/access/routes.ts - Sticker route handlers
server/src/modules/sticker/routes.ts - Warehouse route handlers
server/src/modules/serialwh/routes.ts
Specialized capabilities
- Dashboards and reports
server/src/modules/dashboard - Countrylock bundles
server/src/modules/countrylock - Device injection engine
countrylock/src/multi/engine.ts - Injection planning
countrylock/src/script-template.ts - Desktop services
server/src/modules/desktop/routes.ts
Shared contracts
- Shared API contracts
shared/contract.ts
Other components
- QC staff
Connections 22
- QC staff → Web application: uses
README.md - Web application → Server runtime: accesses backend
- Server runtime → HTTP and API routes: serves routes
- HTTP and API routes → Access route handlers: dispatches
- HTTP and API routes → Serial route handlers: dispatches
- HTTP and API routes → Sticker route handlers: dispatches
- HTTP and API routes → Warehouse route handlers: dispatches
- Access route handlers → Access administration: calls services
server/src/modules/access/routes.ts - Serial route handlers → Serial workflows: calls services
server/src/modules/serial/routes.ts - Sticker route handlers → Sticker catalog and stock: calls services
server/src/modules/sticker/routes.ts - Warehouse route handlers → Serial warehouse: calls handlers
server/src/modules/serialwh/routes.ts - Serial workflows → MariaDB: reads and writes
- Access administration → MariaDB: reads and writes
- Serial warehouse → MariaDB: reads and writes
- Sticker catalog and stock → MariaDB: reads and writes
- Desktop client → Desktop services: uses services
- Desktop services → Countrylock bundles: serves bundles
- Device injection engine → Injection planning: uses template
countrylock/src/multi/engine.ts - Dashboards and reports → MariaDB: runs widget queries
- HTTP and API routes → Authentication: routes sign-in
- Web application → Shared API contracts: uses data shapes
- HTTP and API routes → Shared API contracts: uses data shapes