How andrewtch88/mvc-ecommerce works
Main Components
a) Client Layer:
• Web browser interface
• Static assets (CSS, JS, images) from the /static directory
• Materialize framework integration
b) Frontend Layer:
• PHP View files (*.php in root directory)
• Them by functionality:
• User Authentication (login.php, signup.php)
• Product Management (product.php, product_catalogue.php)
• Admin Interface (admin*.php files)
• Shopping (cart.php, payment.php)
c) Backend Layer:
• Controllers (/includes directory with *.inc.php files)
• Classes (business logic)
• MVC pattern implementation
d) Database Layer:
• MySQL Database (ogtech.sql)
• Key tables for:
• Users
• Products
• Orders
• Reviews
[Client Layer]
• ↕
[Frontend Layer]
• ↕
[Backend Layer]
• ↕
[Database Layer]
Key Elements to Highlight
a) Data Flow:
• User requests → Frontend → Controller → Class → Database
• Response path back to user
• AJAX interactions for forms
b) Component Relationships:
• How includes/class_autoloader.php connects to classes
• Demonstrate how admin functions interact with product management
• Shopping cart flow from selection to payment
Technical Details
• XAMPP server environment
• PHP MVC architecture
• MySQL database
• Materialize CSS framework
• JavaScript functionality (Magnifier, pagination, etc.)
Additional Notes
• Notes about authentication flow
• Potential scaling points
• Where future improvements (like Stripe integration) could fit
Remember to indicate the neon theme implementation in the frontend layer, as it's a distinctive feature of this project. Also, note the separation between public user functions and administrative capabilities, as this is a key security consideration.