How leminhtriet3105206-dev/haihand-marketplace works
HaiHand is a second-hand goods marketplace with a React client, a Node backend, and a separate Express admin application. The user journey spans account access, browsing and listing products, buyer–seller communication, orders and payments, and post-transaction reviews; administrators also manage listings, users, and categories. The source index identifies the backend server as substantial, but its routes were not excerpted, so backend internals and several client-to-server links remain intentionally coarse. Admin model and route relationships are shown where the excerpts provide evidence.
Main entry points: App.js Route application · Header.js Navigation and alerts · server.js Marketplace API · app.js Admin routes and views
Components 23
Marketplace client
- Route application
frontend/src/App.js - Accounts
frontend/src/pages/LoginPage.js - Browse catalog
frontend/src/pages/ProductListPage.js - Home discovery
frontend/src/pages/HomePage.js - Create listings
frontend/src/pages/CreatePostPage.js - Product details
frontend/src/pages/ProductDetailPage.js - Profiles and reviews
frontend/src/pages/ProfilePage.js - Cart and orders
frontend/src/pages/CartPage.js - Payments
frontend/src/pages/HaiPayPage.js - Buyer-seller chat
frontend/src/pages/ChatPage.js - Favorites and follows
frontend/src/pages/FavoritesPage.js - Navigation and alerts
frontend/src/components/Header.js - Admin chat widget
frontend/src/components/FloatingAdminChat.js
Marketplace backend
- Marketplace API
backend/server.js - Product model
backend/models/Product.js - User model
backend/models/User.js - Message model
backend/models/Message.js
Admin console
- Admin routes and views
admin/app.js
Admin data
- Admin post model
admin/models/Post.js - Admin user model
admin/models/User.js - Category model
admin/models/Category.js
Other components
- Marketplace user
- MongoDB
Connections 30
- Marketplace user → Route application: uses
frontend/src/App.js - Route application → Home discovery: routes to
frontend/src/App.js - Route application → Accounts: routes to
frontend/src/App.js - Route application → Create listings: routes to
frontend/src/App.js - Route application → Product details: routes to
frontend/src/App.js - Route application → Profiles and reviews: routes to
frontend/src/App.js - Route application → Cart and orders: routes to
frontend/src/App.js - Route application → Payments: routes to
frontend/src/App.js - Route application → Buyer-seller chat: routes to
frontend/src/App.js - Route application → Favorites and follows: routes to
frontend/src/App.js - Route application → Admin chat widget: renders
frontend/src/App.js - Home discovery → Navigation and alerts: renders
frontend/src/pages/HomePage.js - Browse catalog → Navigation and alerts: renders
frontend/src/pages/ProductListPage.js - Create listings → Navigation and alerts: renders
frontend/src/pages/CreatePostPage.js - Product details → Navigation and alerts: renders
frontend/src/pages/ProductDetailPage.js - Profiles and reviews → Navigation and alerts: renders
frontend/src/pages/ProfilePage.js - Cart and orders → Navigation and alerts: renders
frontend/src/pages/CartPage.js - Buyer-seller chat → Navigation and alerts: renders
frontend/src/pages/ChatPage.js - Navigation and alerts → Marketplace API: requests categories
frontend/src/components/Header.js - Buyer-seller chat → Marketplace API: loads conversations
frontend/src/pages/ChatPage.js - Profiles and reviews → Marketplace API: loads orders and reviews
frontend/src/pages/ProfilePage.js - Product details → Marketplace API: loads product and reviews
frontend/src/pages/ProductDetailPage.js - Marketplace API → Product model
- Marketplace API → User model
- Marketplace API → Message model
- Admin routes and views → Admin post model: queries and updates
admin/app.js - Admin routes and views → Admin user model: queries and updates
admin/app.js - Admin routes and views → Category model: queries and updates
admin/app.js - Admin routes and views → MongoDB: connects
admin/app.js - Admin routes and views → Admin post model: renders post administration
admin/app.js