How alexskuznetsov/control-app works
Main Components Identification
a) Frontend (webapp/)
• React.js application
• User interface components
• API integration layers
b) Backend API (backend/)
• Node.js/Express REST API
• Process controllers
• Service layer
c) Camunda BPM Engine (camunda/)
• Process orchestration
• BPMN workflow execution
• Task management
d) Notification Service (notification-service/)
• Separate microservice for handling notifications
┌─ Client Layer ─────────────────────┐
• React.js Frontend (webapp/) │
• User Interface │
• API Integration │
• Task Management UI │
• ┬────────────────────┘
• ↓
┌─ API Layer ──┴────────────────────┐
• Node.js Backend API │
• Process Management │
• Site Management │
• User Management │
• ┬────────────────────┘
• ↓
┌─ Services ───┴────────────────────┐
• ┌─────────────┐ ┌─────────────┐ │
• Camunda │ │Notification │ │
• BPM Engine │ │ Service │ │
• ┘ └─────────────┘ │
• ┬────────────────────┘
• ↓
┌─ Data Layer ─┴────────────────────┐
• MongoDB │
• ┘
Component Details
Frontend (Blue):
• Main React components (ProcessList, TaskTable, etc.)
• API integration points
• Routing structure
Backend API (Green):
• Controllers (processController, seedController)
• Service layer
• Route handlers
Camunda BPM (Orange):
• BPMN workflow integration
• REST API endpoints
• Task management system
Notification Service (Purple):
• Communication channels
• Notification topics
Database (Gray):
• MongoDB collections
• Data relationships
Connection and Data Flow
• REST API calls between frontend and backend
• Process execution flow through Camunda
• Database operations
• Notification dispatch paths
Additional Elements
Include:
• External service connections
• Authentication flow
• API endpoints listing
• Environment configurations
Specific Implementation Details
• The BPMN workflow integration (control_app_v2.bpmn)
• Task management flow between components
• Site and user management processes
• Notification dispatch system
Technical Stack Indicators
• React.js + TypeScript
• Node.js + Express
• Camunda BPM 7
• MongoDB
• Docker containers