How haerinzue/iphonestore works
MGH iPhone Store is a phone-listing storefront with browser-based administration. Shoppers browse and search published listings, inspect photos and specifications, then contact the seller; administrators manage listings and images. The README documents Supabase as the primary backend, while server.js provides a separate local Express/JSON API and legacy scripts preserve older storefront/cart behavior. Admin excerpts show authentication and listing operations, but the complete page wiring and some backend configuration were not sampled.
Main entry points: admin.js Listing Console · store.js Live Catalog · server.js Express API · index.html Storefront Page
Components 16
Storefront
- Storefront Page
index.html - Live Catalog
store.js - Listing Details
store.js - Seller Contact
store.js - Legacy Catalog
legacy-store.js - Cart Demo
legacy-script.js
Administration
- Admin Page
admin.html - Listing Console
admin.js
Supabase Services
- Supabase Auth
- Phones Table
- Phone Images
Local API
- Express API
server.js - JSON Listings
phones.json - Uploaded Images
server.js
Other components
- Shopper
- Administrator
Connections 17
- Shopper → Storefront Page: opens
README.md - Storefront Page → Live Catalog: loads
README.md - Live Catalog → Phones Table: reads listings
store.js - Phones Table → Live Catalog: updates listings
store.js - Shopper → Listing Details: selects listing
store.js - Listing Details → Seller Contact: opens contact
store.js - Shopper → Legacy Catalog: opens legacy page
- Legacy Catalog → Phones Table: reads listings
legacy-store.js - Shopper → Cart Demo: uses demo cart
- Administrator → Admin Page: opens
README.md - Admin Page → Listing Console: loads
README.md - Listing Console → Supabase Auth: authenticates
admin.js - Listing Console → Phones Table: manages listings
admin.js - Listing Console → Phone Images: uploads images
admin.js - Listing Console → Phone Images: removes images
admin.js - Express API → JSON Listings: reads and writes
server.js - Express API → Uploaded Images: stores uploads
server.js