How laksh1441942-wq/collage-olx works
KampusKart is a frontend-only campus marketplace: students discover listings, inspect products, contact sellers, and manage their own listings and profiles. Pages and JavaScript provide the user workflow; the central AppData sample store and browser localStorage stand in for backend data and persistence. Search, browsing, selling, messaging, and account features are distinct branches. Relationships shown are limited to calls visible in excerpts or capabilities explicitly documented in the README; unsampled page wiring is not inferred.
Main entry points: data.js Sample data store · profile.js Profile and notifications · product-details.html Product details · wishlist.js Wishlist manager
Components 22
Marketplace experience
- Landing page
index.html - Marketplace pages
pages - Product details
pages/product-details.html - Browse filters
js/filters.js - Search and sort
js/search.js - Listing cards
js/products.js
Listing lifecycle
- Sell form
pages/sell.html - Publish listing
js/sell.js - My Listings
js/dashboard.js - Wishlist page
pages/wishlist.html - Wishlist manager
js/wishlist.js
Campus community
- Auth pages
pages/login.html - Demo authentication
js/auth.js - Profile pages
pages/profile.html - Profile and notifications
js/profile.js - Messages page
pages/messages.html - Chat interface
js/messages.js
Shared frontend services
- Sample data store
js/data.js - Browser localStorage
- App bootstrap
js/main.js - Shared UI components
components
Other components
- Student
Connections 28
- Student → Landing page: opens
README.md - Landing page → Marketplace pages: navigates to
README.md - Student → Browse filters: filters listings
README.md - Browse filters → Sample data store: loads options
js/filters.js - Student → Search and sort: searches listings
README.md - Search and sort → Sample data store: checks sellers
js/search.js - Student → Product details: opens listing
README.md - Product details → Sample data store: loads product
- Student → Sell form: creates listing
README.md - Sell form → Publish listing: submits form
README.md - Publish listing → Profile and notifications: adds listing
js/sell.js - Student → My Listings: manages listings
README.md - My Listings → Profile and notifications: reads listings
js/dashboard.js - Student → Wishlist page: views saved items
README.md - Listing cards → Wishlist manager: toggles saved item
js/products.js - Product details → Wishlist manager: checks saved state
- Wishlist manager → Browser localStorage: persists wishlist
js/wishlist.js - Student → Auth pages: signs in
README.md - Auth pages → Demo authentication: validates credentials
js/auth.js - Demo authentication → Browser localStorage: stores demo user
README.md - Student → Profile pages: edits profile
README.md - Profile pages → Profile and notifications: renders and saves
js/profile.js - Profile and notifications → Browser localStorage: persists profile
README.md - Student → Messages page: messages seller
README.md - Messages page → Chat interface: opens conversation
js/messages.js - Chat interface → Sample data store: loads product
js/messages.js - App bootstrap → Shared UI components: fetches markup
js/main.js - App bootstrap → Sample data store: loads colleges
js/main.js