How sivasainikhil/local-medical-shop works
Project type and purpose
• This is a classic LAMP‐style monolithic web app: a PHP/MySQL “Local Medical Shop” system that allows customers and administrators to browse products (medicines, lab tests, healthcare items, tablets), perform CRUD operations (add/edit/delete), handle signups/logins, and process checkouts. It’s not split into separate microservices; instead, everything lives in one folder structure served by Apache + PHP, backed by a single MySQL database.
File structure
Top‐level files reveal layers and functional modules:
• PHP pages for CRUD on various product types: add*/edit*/delete*.php, plus display pages (products.php, labtests.php, healthcare.php, tablets.php, medicine.php)
• Core app logic: database.php (handles DB connection), script.js & signup-validation.js (client‐side scripting)
• Authentication & user flows: login.php (+ login-styles.css), signup.php (+ signup-styles.css), customer.php, admin.php
• Checkout & contact: checkout.php, contact.html
• Static assets: *.css in various modules, plus a single script.js
• Database schema: medical.sql
README for additional insights
• Confirms a single‐folder drop‑in under XAMPP (htdocs), using phpMyAdmin to import the medical.sql schema. No extra services or external APIs are mentioned.
Detail without overthinking
• Break out each feature area as its own component (even if it’s just a group of PHP files).
• Don’t omit the shared database.php or the import step (medical.sql).
• Static‐asset serving as part of the Web Server component.