How lekhai123/binstudio works
BinStudio is an online clothing storefront with customer accounts, product browsing and carts, checkout/payment, and order fulfillment; administrators manage products, users, orders, revenue, and homepage content. The main path runs from the Express server through shared routes into customer actions, which use Mongo-backed models; order handling also reaches payment and shipping integrations. The tree contains a second “Copy” implementation, represented as a separate legacy branch. Several route/controller links and unsampled capabilities are visible only by their module names, so those connections are omitted rather than inferred.
Main entry points: userOrderController.js Checkout and orders · product.js Products · adminController.js Admin dashboard · telegramService.js Telegram order bot
Components 31
Web entry
- Express server
BinStudioFNFNFNFNFNFN/server.js - Customer routes
BinStudioFNFNFNFNFNFN/route/userIndexRoute.js - Admin routes
BinStudioFNFNFNFNFNFN/route/adminIndexRoute.js - Authentication routes
BinStudioFNFNFNFNFNFN/route/authRoute.js
Customer commerce
- Customer authentication
BinStudioFNFNFNFNFNFN/Controller/authUserController.js - Cart operations
BinStudioFNFNFNFNFNFN/Controller/userCartController.js - Storefront actions
BinStudioFNFNFNFNFNFN/Controller/userController.js - Checkout and orders
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js
Store administration
- Admin dashboard
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Product management
BinStudioFNFNFNFNFNFN/Controller/adminProductController.js - Order and revenue
BinStudioFNFNFNFNFNFN/Controller/adminOrder&RevenueController.js
Commerce data
- Products
BinStudioFNFNFNFNFNFN/Models/product.js - Carts
BinStudioFNFNFNFNFNFN/Models/cart.js - Orders
BinStudioFNFNFNFNFNFN/Models/order.js - Users
BinStudioFNFNFNFNFNFN/Models/user.js - Homepage content
BinStudioFNFNFNFNFNFN/Models/pagecontent.js - One-time codes
BinStudioFNFNFNFNFNFN/Models/otp.js
External services
- Image configuration
BinStudioFNFNFNFNFNFN/config/cloudinary.js - GHN shipping
BinStudioFNFNFNFNFNFN/Service/ghnService.js - Telegram order bot
BinStudioFNFNFNFNFNFN/Service/telegramService.js
Copy implementation
- Legacy checkout
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Controller/userOrderController.js - Legacy carts
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Models/cart.js - Legacy orders
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Models/order.js - Legacy products
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Models/product.js
Other components
- Customer
- Admin
- Cloudinary
- GHN carrier
- Telegram
- PayOS payments
- MongoDB
Connections 38
- Customer → Express server: uses storefront
BinStudioFNFNFNFNFNFN/server.js - Admin → Express server: uses admin
BinStudioFNFNFNFNFNFN/server.js - Express server → Customer routes: mounts routes
BinStudioFNFNFNFNFNFN/server.js - Express server → Admin routes: mounts routes
BinStudioFNFNFNFNFNFN/server.js - Express server → MongoDB: connects
BinStudioFNFNFNFNFNFN/server.js - Authentication routes → Customer authentication: routes to
BinStudioFNFNFNFNFNFN/route/authRoute.js - Admin routes → Product management: registers
- Checkout and orders → Orders: reads/writes
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - Checkout and orders → Carts: reads/writes
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - Checkout and orders → Products: reads/writes
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - Checkout and orders → GHN shipping: requests shipping
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - Checkout and orders → Telegram order bot: notifies
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - Checkout and orders → PayOS payments: creates payment
BinStudioFNFNFNFNFNFN/Controller/userOrderController.js - GHN shipping → GHN carrier: calls API
BinStudioFNFNFNFNFNFN/Service/ghnService.js - Telegram order bot → Telegram: sends updates
BinStudioFNFNFNFNFNFN/Service/telegramService.js - Telegram order bot → Orders: updates
BinStudioFNFNFNFNFNFN/Service/telegramService.js - Telegram order bot → Products: restocks
BinStudioFNFNFNFNFNFN/Service/telegramService.js - Telegram order bot → GHN shipping: requests fulfillment
BinStudioFNFNFNFNFNFN/Service/telegramService.js - Admin dashboard → Users: reads
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Admin dashboard → Products: reads
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Admin dashboard → Orders: reads
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Admin dashboard → Homepage content: manages
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Admin dashboard → Image configuration: uses uploads
BinStudioFNFNFNFNFNFN/Controller/adminController.js - Image configuration → Cloudinary: configures
BinStudioFNFNFNFNFNFN/config/cloudinary.js - Product management → Products: manages
BinStudioFNFNFNFNFNFN/Controller/adminProductController.js - Order and revenue → Orders: reports on
BinStudioFNFNFNFNFNFN/Controller/adminOrder&RevenueController.js - Order and revenue → Products: reads
BinStudioFNFNFNFNFNFN/Controller/adminOrder&RevenueController.js - Cart operations → Carts: reads/writes
BinStudioFNFNFNFNFNFN/Controller/userCartController.js - Cart operations → Products: reads
BinStudioFNFNFNFNFNFN/Controller/userCartController.js - Storefront actions → Products: reads
BinStudioFNFNFNFNFNFN/Controller/userController.js - Storefront actions → Carts: reads
BinStudioFNFNFNFNFNFN/Controller/userController.js - Storefront actions → Orders: reads
BinStudioFNFNFNFNFNFN/Controller/userController.js - Storefront actions → Homepage content: reads
BinStudioFNFNFNFNFNFN/Controller/userController.js - Customer authentication → Users: authenticates
BinStudioFNFNFNFNFNFN/Controller/authUserController.js - Customer authentication → One-time codes: uses codes
BinStudioFNFNFNFNFNFN/Controller/authUserController.js - Legacy checkout → Legacy orders: reads/writes
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Controller/userOrderController.js - Legacy checkout → Legacy carts: reads/writes
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Controller/userOrderController.js - Legacy checkout → Legacy products: reads/writes
BinStudioFNFNFNFNFNFN/BinStudioFNFNFNFNFNFN - Copy/Controller/userOrderController.js