How vdhjdn/campus-trade works
CampusTrade is a React campus marketplace. The user-facing workflow enters through the routed app, where buyers browse products and shops, manage a cart, and follow orders; sellers manage shops and listings, handle orders, and review payment or refund evidence. Account access and conversations are additional capabilities. The README documents Supabase authentication, database, and storage services, and an excerpt shows the home page querying products. The large page module is only partially sampled, so its feature-to-backend calls are not asserted.
Main entry points: App.jsx Routed application · supabase.js Supabase client · Pages-temp.jsx Product browsing · Navbar.jsx Site navigation
Components 15
Application shell
- Routed application
src/App.jsx - Site navigation
src/components/Navbar.jsx - Site footer
src/components/Footer.jsx
Marketplace
- Product browsing
src/pages/Pages-temp.jsx - Shop management
src/pages/Pages-temp.jsx - Product listings
src/pages/Pages-temp.jsx
Orders and payments
- Shopping cart
src/pages/Pages-temp.jsx - Order management
src/pages/Pages-temp.jsx - Payment verification
src/pages/Pages-temp.jsx - Refund management
src/pages/Pages-temp.jsx
Accounts and sellers
- Authentication and profile
src/pages/Pages-temp.jsx - Conversations
src/pages/Pages-temp.jsx
Backend services
- Supabase client
src/lib/supabase.js - Supabase services
Other components
- Campus user
Connections 23
- Campus user → Routed application: uses
- Routed application → Site navigation: renders
src/App.jsx - Routed application → Site footer: renders
src/App.jsx - Routed application → Product browsing: routes to
src/App.jsx - Routed application → Shop management: routes to
src/App.jsx - Routed application → Product listings: routes to
src/App.jsx - Routed application → Shopping cart: routes to
src/App.jsx - Routed application → Order management: routes to
src/App.jsx - Routed application → Payment verification: routes to
src/App.jsx - Routed application → Refund management: routes to
src/App.jsx - Routed application → Authentication and profile: routes to
src/App.jsx - Routed application → Conversations: routes to
src/App.jsx - Routed application → Supabase client: queries products
src/App.jsx - Supabase client → Supabase services: connects to
src/lib/supabase.js - Product browsing → Supabase client: uses backend
src/pages/Pages-temp.jsx - Shop management → Supabase client: uses backend
src/pages/Pages-temp.jsx - Product listings → Supabase client: uses backend
src/pages/Pages-temp.jsx - Shopping cart → Supabase client: uses backend
src/pages/Pages-temp.jsx - Order management → Supabase client: uses backend
src/pages/Pages-temp.jsx - Payment verification → Supabase client: uses backend
src/pages/Pages-temp.jsx - Refund management → Supabase client: uses backend
src/pages/Pages-temp.jsx - Authentication and profile → Supabase client: uses backend
src/pages/Pages-temp.jsx - Conversations → Supabase client: uses backend
src/pages/Pages-temp.jsx