How divyanka-20/pg_life works
Project type and purpose
• This is a monolithic, PHP-based web application (“PG_Life”) for browsing and managing property listings.
• Users can view property lists, details, and mark properties as “interested.” There is also a dashboard for authenticated users.
File structure
• Top level:
• index.php, property_list.php, property_detail.php, dashboard.php, logout.php
• api/ (AJAX endpoints for login, signup, toggling interest, dashboard data)
• includes/ (shared PHP fragments: header, footer, DB connect, modals)
• css/ and js/ (static front-end assets)
• img/ (property and amenity images)
• The “api” scripts handle JSON requests from the JS layer, while the PHP pages render HTML.
• There’s a database connection abstraction in includes/database_connect*.php (likely MySQL).
README
• The README only gives the project name “PG_Life.” Details must be inferred from the code layout.
Be detailed but concise
• Distinct module (page, API script, include, asset directory) in grouped components.
• Data flows and dependencies are shown so that a newcomer immediately grasps how requests travel through the system.