Live Platform: https://uiunest-production.up.railway.app/
UIUNest is a comprehensive platform designed for UIU (United International University) students, landlords, and administrators. It covers verified housing discovery, flatmate compatibility matching, a peer-to-peer exchange marketplace, mess bill management, and a full admin dashboard β all in a single, mobile-friendly web application.
- Fluid Mobile Navigation: Completely redesigned the mobile navbar into a floating pill shape. Features a dynamic, sliding emerald bubble that perfectly tracks your interactions via a custom JavaScript
requestAnimationFrameengine for 60fps buttery-smooth transitions. - Context-Aware Auth States: The center account button now intelligently shape-shifts depending on your authentication state, turning into an animated "Login" or "Register" button based on the page you are viewing.
- Responsive Mobile Perfection: Fixed overflow issues on the Mess Bill Manager and Profile pages, ensuring custom dropdowns and file uploads flawlessly adapt to small screens.
- Sleek Navbar Behavior: Engineered a smart navbar that remains permanently pinned on the homepage, but smoothly auto-hides with a graceful transition on sub-pages to maximize vertical screen real estate.
- Natural Copywriting: Completely rewrote the homepage marketing copy to sound conversational, warm, and distinctly human.
- Refined Aesthetics: Softened the active navigation pill radiuses to perfect the "squircle" look.
- Housing Listings: Browse verified properties around the UIU campus with Leaflet maps, zone filters, and price ranges.
- Flatmate Matching: Find roommates with a weighted compatibility score based on sleep schedule, diet, noise tolerance, cleanliness, and guest policy.
- Exchange Marketplace: Buy and sell furniture, appliances, and study materials with direct offer/counter-offer negotiation.
- Mess Bill Manager: Track, split, and pay monthly utility and rent bills among housemates.
- Looking For: Post or respond to "Looking For" ads to find accommodation quickly.
- Watchlist: Save favourite listings for later.
- Notifications: Real-time in-app notifications for verification updates, offer responses, and more.
- Property Listings: Create and manage rental listings with photos, amenities, and pricing.
- Tenant Applications: Review and accept or reject tenancy applications.
- Verification: Upload identity documents for admin verification to earn a verified badge on all listings.
- Bills Management: Create and manage monthly bills for tenants.
- User Management: View all users, suspend/activate accounts, and revoke verifications.
- Verification Review: Approve or reject landlord/user verification document submissions with one click, automatically notifying the user.
- Complaints Handling: Review, escalate, and resolve complaints between users.
- Admin Stats: Real-time dashboard with total users, listings, pending verifications, and open complaints.
- Frontend: HTML5, CSS3, Vanilla JavaScript
- Backend: PHP 8+
- Database: MySQL
- Icons: Lucide Icons
- Maps: Leaflet.js
- Charts: Chart.js
This project requires a PHP + MySQL server environment. XAMPP is recommended.
- Open the XAMPP Control Panel and start Apache and MySQL.
- Open
http://localhost/phpmyadminin your browser. - Create a new database named
uiunest. - Select the
uiunestdatabase β go to the Import tab β uploaddatabase/schema.sqlβ click Import.
This creates all 19 tables including users, listings, verifications, notifications, marketplace items, bills, and more.
Clone or move the repository directly into XAMPP's htdocs directory:
- Windows:
C:\xampp\htdocs\UIU-Nest - Mac:
/Applications/XAMPP/htdocs/UIU-Nest
Keep the repo anywhere and create a shortcut into htdocs.
Windows (run as Administrator):
mklink /D "C:\xampp\htdocs\UIU-Nest" "C:\Users\YourName\Downloads\UIU-Nest"Navigate to: http://localhost/UIU-Nest
The schema includes a reset_db.php utility that seeds the master admin:
- Login:
ADM-MASTERormaster@admin.com - Password:
1265Master
Security Note: Delete or password-protect
api/reset_db.phpbefore deploying to production.
UIU-Nest/
βββ api/ # All PHP backend endpoints
β βββ db.php # PDO database connection
β βββ login.php # Authentication + session creation
β βββ logout.php # Session teardown
β βββ register.php # New user registration
β βββ me.php # Fetch current session user
β βββ profile.php # Profile read/update (incl. profile_pic)
β βββ upload.php # Secure file upload handler (images, PDFs)
β βββ listings.php # Listing CRUD
β βββ applications.php # Tenancy applications
β βββ watchlist.php # User watchlist (save/remove listings)
β βββ bills.php # Mess bill create/read/pay
β βββ exchange.php # Marketplace item CRUD
β βββ offers.php # Offer/counter-offer management
β βββ complaint.php # Submit complaints
β βββ seeking.php # Looking-For post CRUD
β βββ seeking_responses.php # Responses to seeking posts
β βββ verify.php # Submit verification request
β βββ verif_status.php # Check own verification status
β βββ notifications.php # Fetch + mark-read notifications
β βββ dashboard.php # Dashboard data aggregation
β βββ update_status.php # Update listing/offer/application status
β βββ check.php # Auth check helper
β βββ admin_stats.php # Admin dashboard stats
β βββ admin_users.php # List all users for admin
β βββ admin_action_user.php # Admin suspend/activate user
β βββ admin_verifications.php # List all verification requests
β βββ admin_action_verif.php # Admin approve/reject verification
β βββ admin_revoke_verif.php # Admin revoke verification
β βββ admin_complaints.php # List all complaints for admin
β βββ admin_action_complaint.php # Admin resolve/escalate complaint
β βββ admin_action_listing.php # Admin delete listing
β βββ alter_db_interactions.php # One-time DB migration (seeking_responses + notifications tables)
β βββ reset_db.php # Dev only β truncates all tables + seeds master admin
βββ database/
β βββ schema.sql # Full MySQL schema (19 tables)
β βββ seed.sql # Optional sample data
β βββ seed.php # PHP seeder script
βββ docs/
β βββ system_architecture.md # Technical architecture overview
β βββ walkthrough.md # Feature implementation log
β βββ changelog_vs_report.md # Deviations from original academic ERD
β βββ implementation_plan.md # Current/past dev plan
β βββ task.md # Dev task checklist
βββ uploads/ # User-uploaded files (gitignored)
β βββ listings/
β βββ items/
β βββ verifications/
β βββ profiles/
βββ admin.html # Admin dashboard (admin-only)
βββ bills.html # Mess bill manager
βββ dashboard.html # User dashboard (listings, offers, watchlist, bills)
βββ exchange.html # Marketplace browse
βββ index.html # Home / landing page
βββ item-detail.html # Single marketplace item view
βββ listing-detail.html # Single housing listing view
βββ listings.html # Housing listings browse
βββ login.html # Login page
βββ profile.html # Profile + preferences + verification
βββ register.html # Registration page
βββ seeking.html # Looking For posts
βββ app.js # Core JS: nav, auth, localStorage, utilities
βββ data.js # Static seed/fallback data
βββ style.css # Global design system
βββ .gitignore
For teammates and future developers, the docs/ folder contains up-to-date architectural notes:
docs/system_architecture.mdβ Technical overview of the frontend Chrome system, database schema, API flows, and feature algorithms.docs/walkthrough.mdβ Log of all major completed implementations and what changed.
If you are using an AI assistant to help build this project, instruct it to read docs/system_architecture.md and docs/walkthrough.md to instantly understand the backend architecture and history of changes.