How yarlinriverar/tienda-shalom works
Project type and purpose
• This is a monolithic, full-stack PHP web application following a custom MVC pattern.
• It provides both an administrative dashboard (“Admin” controllers & views) and a public-facing storefront/profile area (“Principal” controllers & views).
• It uses Composer for dependency management (e.g., PHPMailer), serves static assets (JS/CSS/images), and connects to a relational database (likely MySQL).
File structure
• Top level
• index.php – front controller
• composer.json / composer.lock – PHP dependencies (PHPMailer)
• .htaccess – URL rewriting for pretty routes
• Config/ – core framework bootstrap, autoload, DB connection, query builder, view loader, helper functions
• MVC folders
• Controllers/ – one controller per resource (Admin, Usuarios, Productos, Pedidos, etc.)
• Models/ – corresponding data access classes (AdminModel, UsuariosModel, etc.)
• Views/ – PHP templates, split into “admin” and “principal” subfolders and shared templates
• Static assets
• assets/ – DataTables plugins, admin UI CSS/JS (Material Dashboard), principal site CSS/JS, images, fonts, favicon
• README.md
• Instructs to run composer install for PHPMailer and gives SMTP credentials.
README for additional insights
• PHPMailer is used for outbound email notifications.