How hifzur001/boobs works
Project Type and Purpose
• This is a full-stack travel booking web application (“StayScape Services”) with:
• A modern responsive frontend (HTML5/CSS3/JS + Bootstrap)
• A RESTful PHP backend (api/auth.php, api/services.php, api/bookings.php)
• A MySQL database (via config/database.php and PDO)
• Separate user roles and UIs (end users, brokers, admins)
File Structure
• Top-level HTML pages for each role and flow:
• index.html, booking.html, confirmation.html, my-bookings.html (end user)
• admin-login.html, admin-panel.html (admin)
• broker-login.html, broker-panel.html (broker)
• “api/” directory: three controllers (auth, services, bookings)
• “config/database.php”: database connection details
• “js/” and page-level *.js: frontend logic, API client (js/api-client.js)
• “style.css” and per-panel CSS files: styling
• “supabase/migrations”: database migration scripts (optional DevOps)
• Static assets: img/, font/, css/, js/
README for Additional Insights
• Technology stack: PHP7.4+, MySQL5.7+, PDO, REST
• Key architectural patterns:
• Layered architecture (Presentation → API layer → Data layer)
• Role-based access control
• Stateless REST endpoints with session tokens
• Database schema relationships (Users→Bookings, Brokers→Services, Cities→Services)