How alejo9009/sets works
Project Type and Purpose
• This is a monolithic, full-stack web application for community facility management (admin, resident, security guard portals), built on a PHP MVC backend with multiple role-specific views and a separate modern React front-end under VIEW/frontend. It uses a relational database (MySQL) and serves both server-rendered pages and a SPA.
File-Structure Analysis
• Top-level MVC separation:
• CONTROLLER/: PHP scripts handling requests and routing to business logic.
• MODEL/: PHP classes and scripts for data access, business rules, backend auth, password recovery, user management, plus SQL “sets” for schema.
• VIEW/: Role-based UI layers—subdirectories for admin, residente, seguridad—each containing PHP views, CSS, JS, chat endpoints and uploads. Also VIEW/frontend/ holds a React SPA (package.json, public/, src/).
• Configuration and assets:
• Shared DB connection scripts (MODEL/conexion.php, CONTROLLER/conexion.php, VIEW/*/conexion.php).
• SQL seed files (sets (1).sql, sets (19).sql, etc.).
• Static media under img/ and VIEW/*/img/ for MP4 assets.