How santiagourdaneta/sistema-de-asistencia works
Project Type and Purpose
• This is a monolithic, full-stack PHP web application for attendance control (sistema_asistencia).
• Purpose: Allow small businesses to register employees and track their daily attendance (“marcados”) via a browser interface backed by a MySQL database.
File Structure Analysis
Top-level
• README.md, SECURITY.md, schema.sql – documentation and DB schema
• conectar.php – shared DB connection
• index.php – public entry point
• determinar_movimiento.php – likely AJAX or business logic endpoint
• css/, js/, less/, img/ – static assets and source for CSS build pipeline
• gulpfile.js, package.json – asset build (Gulp+Node)
• vendor/ – third-party PHP libraries (if any)
Admin module (/admin)
• login.php, cerrar_sesion.php, inicio_admin.php, index.php – authentication and landing pages
• /empleados – CRUD operations, photos, sub-includes (head, nav, footer, scripts)
• /marcados – attendance listing per date, with its own sub-includes
• /comunes – shared layout templates used across admin pages
Key Architectural Components
• Presentation layer: PHP pages + HTML templates (common head, nav, footer, scripts).
• Static asset pipeline: LESS source → Gulp task → CSS (freelancer.css) + JS libraries.
• Business logic: Procedural PHP scripts under /admin/empleados and /admin/marcados.
• Data access layer: conectar.php used by each module to communicate with MySQL.
• Data store: MySQL database (schema defined in schema.sql).