How jakariya-98/bamboo-chick works
Bamboo Chick is a role-based curtain e-commerce application. Buyers browse and configure products, keep a cart, receive server-priced checkout totals, place orders and track order slips; sellers manage orders, catalogue, offers, blogs and reports, while admins oversee users, reviews and manufacturer content. The graph combines the sampled client and order/review server code with README-described capabilities. Some page-to-API and route-to-controller connections are documented but their implementation details were not sampled.
Main entry points: orderController.js Order lifecycle · index.js API routing · client.js API client · reviewController.js Review moderation
Components 23
Buyer storefront
- Browse and configure
bamboo-chick-app/client/src/pages - Cart
bamboo-chick-app/client/src/context/CartContext.jsx - Checkout
bamboo-chick-app/client/src/pages/Checkout.jsx - Order tracking
bamboo-chick-app/client/src/pages
Client foundations
- Routes and layouts
bamboo-chick-app/client/src/App.jsx - Authentication
bamboo-chick-app/client/src/context/AuthContext.jsx - API client
bamboo-chick-app/client/src/api/client.js
Commerce API
- HTTP application
bamboo-chick-app/server/src/app.js - API routing
bamboo-chick-app/server/src/routes/index.js - Product catalogue
bamboo-chick-app/server/src/controllers/productController.js - Pricing rules
bamboo-chick-app/server/src/utils/pricing.js - Order lifecycle
bamboo-chick-app/server/src/controllers/orderController.js - Review moderation
bamboo-chick-app/server/src/controllers/reviewController.js - Account endpoints
bamboo-chick-app/server/src/controllers/authController.js
Seller and admin
- Seller and admin tools
bamboo-chick-app/client/src/pages - Content and reporting
bamboo-chick-app/server/src/controllers
Persistence
- MongoDB
bamboo-chick-app/server/src/config/db.js - Product records
bamboo-chick-app/server/src/models/Product.js - Order records
bamboo-chick-app/server/src/models/Order.js - Review records
bamboo-chick-app/server/src/models/Review.js - Store settings
bamboo-chick-app/server/src/models/Setting.js - User records
bamboo-chick-app/server/src/models/User.js
Other components
- Buyer
Connections 24
- Buyer → Browse and configure: browses
- Browse and configure → Cart: adds items
bamboo-chick-app/client/src/pages/ProductDetail.jsx - Cart → Checkout: submits cart
bamboo-chick-app/client/src/pages/Checkout.jsx - Checkout → API client: requests quote and order
bamboo-chick-app/client/src/pages/Checkout.jsx - API client → HTTP application: calls API
bamboo-chick-app/client/src/api/client.js - HTTP application → API routing: mounts routes
bamboo-chick-app/server/src/app.js - API routing → Order lifecycle: routes orders
bamboo-chick-app/server/src/routes/index.js - API routing → Product catalogue: routes products
bamboo-chick-app/server/src/routes/index.js - API routing → Review moderation: routes reviews
bamboo-chick-app/server/src/routes/index.js - API routing → Account endpoints: routes authentication
bamboo-chick-app/server/src/routes/index.js - Order lifecycle → Pricing rules: calculates totals
bamboo-chick-app/server/src/controllers/orderController.js - Order lifecycle → Product records: prices and reserves stock
bamboo-chick-app/server/src/controllers/orderController.js - Order lifecycle → Order records: creates and updates
bamboo-chick-app/server/src/controllers/orderController.js - Order lifecycle → Store settings: loads settings
bamboo-chick-app/server/src/controllers/orderController.js - Order lifecycle → Content and reporting: generates order numbers
bamboo-chick-app/server/src/controllers/orderController.js - Product catalogue → Product records: reads catalogue
bamboo-chick-app/server/src/controllers/productController.js - Review moderation → Review records: reads and writes
bamboo-chick-app/server/src/controllers/reviewController.js - Review moderation → Product records: checks product
bamboo-chick-app/server/src/controllers/reviewController.js - Account endpoints → User records: authenticates users
bamboo-chick-app/server/src/controllers/authController.js - Routes and layouts → Browse and configure: routes storefront
bamboo-chick-app/client/src/App.jsx - Routes and layouts → Seller and admin tools: routes dashboards
bamboo-chick-app/client/src/App.jsx - Authentication → API client: calls auth endpoints
bamboo-chick-app/client/src/context/AuthContext.jsx - Seller and admin tools → API client: manages commerce
bamboo-chick-app/client/src/pages/ProductDetail.jsx - Content and reporting → MongoDB: uses MongoDB