Self AR Admin: AR Kiosk Control Panel
Self AR Admin is a specialized desktop application built with Electron, designed for configuring and setting up interactive AR photo booths (kiosks). This tool replaces the manual editing of complex JSON configurations with an intuitive visual interface.
| Metric | Value |
|---|---|
| Type | Desktop App (Windows/Portable) |
| Runtime | Electron + Node.js |
| Connection | Embedded REST API (Localhost) |
| UI | Material UI (Dark Theme) |
TL;DR
Development of an “offline admin panel.” Creation of a reliable tool for photo booth operators, featuring deeply nested forms, file system management, and external Unity process launching.
Key Engineering Solutions
🏗️ Hybrid Architecture (Electron + Express)
Instead of standard IPC (Inter-Process Communication), I implemented a non-standard but highly effective solution:
- Embedded Express Server: A lightweight Express server is run within the Electron Main process.
- REST API on localhost: The Renderer process (React) communicates with system functions via standard HTTP requests. This ensured clean code, easy testability, and eliminated the need for
nodeIntegration.
📝 Complex Data Management
- Deep Nesting: Implemented a form with 3 levels of nesting (Libraries -> Scenes -> Characters) using
react-final-formandFieldArray. - Parsing and Validation: A system for automatic parsing and generation of JSON configurations, supporting complex file naming schemes and format backward compatibility.
- Dynamic Ports: Implemented a mechanism for automatically finding a free port for the embedded server, allowing multiple copies of the admin panel to run simultaneously.
⚙️ System Integration
- Process Management: Implemented the ability to launch an external Unity application (
selfar.exe) and pass the current configuration parameters with a single button click. - Hardware Config: An interface for configuring camera COM ports, printers, SMTP servers, and video stream parameters.
Technical Details
- Material UI: Used a dark theme for comfortable operation in the low-light environments of installations.
- Portable Mode: Optimized the build using
electron-builderfor running the application from portable media. - Testing: Integrated Jest for logic testing and TestCafe for end-to-end interface testing.