How mbrizic/light-system works
Component Details
Frontend Components:
• Controllers (dashboard, editor, lights, scenes)
• Components (both generic and specific)
• Services
• Repositories
• Models
Backend Components:
• API Controllers (fileUpload, floorplans, lights, scenes)
• Repositories
• Models
• Helpers and Config
Following interactions:
• Frontend Repository → Backend API
• Backend API → Backend Repository
• Backend Repository → Database
• Frontend Components → Frontend Controllers
• Frontend Controllers → Frontend Repositories
Specific Component Relationships
• Floorplan renderer → Light toggles
• Scenes list → Scene toggles
• Light/Scene models → corresponding API endpoints
• File upload component → File storage system
Technical Stack Callouts
• Angular.js (Frontend framework)
• Express.js (Backend framework)
• PostgreSQL (Database)
• Node.js (Runtime)
• Bower (Frontend package manager)
Key Architectural Patterns to Highlight:
• MVC pattern in both frontend and backend
• Repository pattern for data access
• Component-based frontend architecture
• RESTful API structure