How fmomoreira/integracao-litnet2-actuar works
Project type and purpose
• This is a desktop application built with Electron and Node.js, serving as an MVP for integrating with LiteNet2 turnstiles over TCP/IP.
• It provides a UI for user management (registration, biometrics), real-time event logging, and access control commands to the device.
File structure
• Top-level files only:
• index.html – the Renderer (UI) page
• main_tcp.js – Node.js module for TCP/IP communication
• package.json/lock – dependency and build configuration
• README/MS‐docs – documentation
• No separate “src” or “lib” folders, so both UI and business logic co-exist in the root.
• Electron’s Main Process is implied by package.json “main” entry (likely main_tcp.js or a small bootstrap script not shown).
Key insights from README
• Electron renderer (HTML/CSS/JS) implements modern UI.
• main_tcp.js encapsulates all TCP/IP messaging to the LiteNet2 device, using a simple packet format.
• Local persistence is required (“Persistência local de dados”)—likely via JSON or a lightweight embedded DB.