How mahamudul496/uiu-bookhub works
UIU BookHUB is a student marketplace for buying, selling, donating, and discovering academic materials. Students browse approved listings, then can save items, request purchases, message sellers, and review completed transactions; sellers submit listings and respond to requests, while admins review submissions. The graph groups the documented capabilities into user-facing pages and PHP API domains, with authentication and MySQL access as shared internal layers. API-to-auth and API-to-database links are shown where source excerpts or the index support them; page-to-endpoint wiring is not established by the available evidence.
Main entry points: auth.php Auth and sessions · database.php MySQL connection · create.php Listing submissions · donations Donation listings
Components 18
Web experience
- Public pages
- Student pages
student - Browser JavaScript
js
Identity and access
- Login API
api/auth/login.php - Session APIs
api/auth - Auth and sessions
config/auth.php - MySQL connection
config/database.php
Marketplace and giving
- Listing discovery
api/listings - Listing submissions
api/listings/create.php - Donation listings
api/donations
Student transactions
- Wishlist
api/wishlist - Purchase requests
api/purchases - Student chat
api/messages - Seller reviews
api/reviews
Admin operations
- Admin pages
admin - Admin review APIs
api/admin
Other components
- Students
- Admins
Connections 20
- Students → Public pages: browse and discover
README.md - Students → Student pages: use student tools
README.md - Admins → Admin pages: manage listings
README.md - Public pages → Browser JavaScript: use browser scripts
- Student pages → Browser JavaScript: use browser scripts
- Students → Login API: sign in
README.md - Login API → Auth and sessions: loads auth helpers
api/auth/login.php - Session APIs → Auth and sessions: loads auth helpers
api/auth/me.php - Auth and sessions → MySQL connection: opens database
config/auth.php - Listing submissions → Auth and sessions: checks student session
api/listings/create.php - Listing submissions → MySQL connection: inserts listings
api/listings/create.php - Listing discovery → MySQL connection: queries approved listings
api/listings/list.php - Donation listings → Auth and sessions: loads auth helpers
api/donations/create.php - Donation listings → MySQL connection: queries donations
api/donations/list.php - Wishlist → Auth and sessions: checks student session
api/wishlist/toggle.php - Purchase requests → Auth and sessions: checks student session
api/purchases/respond.php - Student chat → Auth and sessions: checks student session
api/messages/start.php - Seller reviews → Auth and sessions: checks student session
api/reviews/create.php - Admin review APIs → Auth and sessions: checks admin access
api/admin/review.php - Admin review APIs → MySQL connection: updates review status
api/admin/review.php