How 3dbmonitoraedu/tcc works
MoniTec is a school-computer monitoring system: a teacher uses a web dashboard to manage rooms, view connected agents and machine metrics, and issue remote actions; local agents poll a backend with status and pending commands. The tree contains both a Cloudflare Worker backend and a separate Express/SQLite server, so both are shown as backend implementations rather than assuming they are deployed together. README statements support the broad HTTP flows; source-index references and excerpts support the internal links shown. Unsampled integrations are omitted where their wiring is uncertain.
Main entry points: agents.ts Agent Routes · index.js Express Routes · agent.go Agent Runtime · App.tsx Web Routes
Components 27
Teacher Web App
- Web Routes
projeto/front/src/App.tsx - Dashboard
projeto/front/src/pages/Dashboard.tsx - Admin Console
projeto/front/src/pages/Admin.tsx - API Clients
projeto/front/src/api
Worker Backend
- Worker Routes
projeto/moniedu-worker/src/index.ts - Agent Routes
projeto/moniedu-worker/src/routes/agents.ts - Authentication
projeto/moniedu-worker/src/auth.ts - Auth Middleware
projeto/moniedu-worker/src/middlewares/auth.ts - Agent Registry
projeto/moniedu-worker/src/services/agents.ts - Metrics
projeto/moniedu-worker/src/services/metrics.ts - Process Data
projeto/moniedu-worker/src/services/processes.ts - DNS Policy
projeto/moniedu-worker/src/services/dns.ts - Command Queue
projeto/moniedu-worker/src/services/command.ts - Room Management
projeto/moniedu-worker/src/services/rooms.ts - Worker Database
Express Backend
- Express Routes
projeto/servidor/src/index.js - Session Services
projeto/servidor/src/services/auth.js - Agent Services
projeto/servidor/src/services/agents.js - Command Services
projeto/servidor/src/services/command.js - SQLite Store
projeto/servidor/src/db/index.js
Local Agent
- Agent Runtime
projeto/agente/internal/agent/agent.go - HTTP Client
projeto/agente/internal/apiclient/apiclient.go - Machine Collector
projeto/agente/internal/collector/collector.go - Command Executor
projeto/agente/internal/executor/executor.go - Local DNS
projeto/agente/internal/dns/dns.go - Initial Setup
projeto/agente/internal/setup/setup.go
Other components
- Teacher
Connections 30
- Teacher → Web Routes: uses
- Web Routes → Dashboard: routes to
projeto/front/src/App.tsx - Web Routes → Admin Console: routes to
projeto/front/src/App.tsx - Teacher → API Clients: requests status
- API Clients → Worker Routes: HTTP requests
- API Clients → Express Routes: HTTP requests
- Worker Routes → Agent Routes: routes requests
- Agent Routes → Agent Registry: calls
projeto/moniedu-worker/src/routes/agents.ts - Agent Routes → Metrics: records metrics
projeto/moniedu-worker/src/routes/agents.ts - Agent Routes → DNS Policy: reads and updates
projeto/moniedu-worker/src/routes/agents.ts - Agent Routes → Command Queue: fetches commands
projeto/moniedu-worker/src/routes/agents.ts - Agent Routes → Auth Middleware: protects dashboard calls
projeto/moniedu-worker/src/routes/agents.ts - Auth Middleware → Authentication: gets session
projeto/moniedu-worker/src/middlewares/auth.ts - Agent Registry → Process Data: uses
projeto/moniedu-worker/src/services/agents.ts - Metrics → Process Data: uses
projeto/moniedu-worker/src/services/metrics.ts - DNS Policy → Worker Database: reads and writes
projeto/moniedu-worker/src/services/dns.ts - Agent Routes → Teacher: returns metrics and policy
projeto/moniedu-worker/src/routes/agents.ts - Agent Runtime → HTTP Client: polls backend
- Agent Runtime → Machine Collector: collects machine data
- Agent Runtime → Command Executor: runs authorized commands
- Agent Runtime → Local DNS: applies DNS policy
- Agent Runtime → Initial Setup: configured by
- HTTP Client → Worker Routes: polls by HTTP
- HTTP Client → Express Routes: polls by HTTP
- Express Routes → Session Services: dispatches auth
- Session Services → SQLite Store: reads and writes
projeto/servidor/src/services/auth.js - Session Services → Express Routes: returns session
- Express Routes → Agent Services: dispatches agent requests
- Express Routes → Command Services: routes commands
- Agent Runtime → Express Routes: sends status, checks commands