How haibarca03/vietglobal works
VietGlobal combines a multilingual logistics and shipping-services storefront with a product catalog, administrator-managed content, user authentication, and contact email handling. Visitors enter through localized routes to explore logistics services or browse product categories and details; administrators manage catalog and site content through protected operations. The sampled files show the product API’s storage and image-upload behavior, while other backend domains and frontend API flows are represented where the source index documents them. Several page and route implementations were not sampled, so their internal behavior is not expanded.
Main entry points: routes.js Localized pages · product.controller.js Product operations · index.router.js API route registry · product.router.js Product routes
Components 30
Storefront
- Web app routing
frontend/src/App.jsx - Localized pages
frontend/src/router/routes.js - Shipping pages
frontend/src/pages/Shipping - Service detail
frontend/src/pages/Shipping/ServiceDetailPage.jsx - Service presentation
frontend/src/components/ServiceDetail/ServiceContent.jsx - Fulfillment
frontend/src/pages/Fulfillment/FulfillmentPage.jsx
Product catalog
- Catalog pages
frontend/src/pages/ProductCategory - Product detail
frontend/src/pages/ProductDetailPage/ProductDetailPage.jsx - Product API client
frontend/src/stores/Product/productApi.js
Administration
- Admin pages
frontend/src/pages/Admin - Login
frontend/src/pages/Login/Login.jsx - Registration
frontend/src/pages/Register/Register.jsx - User API client
frontend/src/stores/Users/userApis.js
Backend services
- HTTP server entry
backend/index.js - API route registry
backend/src/routers/index.router.js - Product routes
backend/src/routers/product.router.js - Product operations
backend/src/controller/product.controller.js - Product records
backend/src/models/product.model.js - Category records
backend/src/models/category.model.js - Content routes
backend/src/routers - Site content operations
backend/src/controller - Admin authorization
backend/src/middleware/auth.js
Contact messaging
- Contact form handler
backend/src/mailer/mailer.controller.js - Email service
backend/src/mailer/mail.service.js - Email templates
backend/src/mailer/emailtemplates.js
Other components
- Visitor
- Administrator
- Brevo email
backend/src/config/brevo-mail.config.js - MongoDB
backend/src/config/db.config.js - Cloudinary
backend/src/config/cloudinary.config.js
Connections 30
- Visitor → Web app routing: opens
- Web app routing → Localized pages: renders routes
frontend/src/App.jsx - Visitor → Shipping pages: browses
- Localized pages → Shipping pages: routes to
frontend/src/router/routes.js - Localized pages → Service detail: routes to
frontend/src/router/routes.js - Service detail → Service presentation: renders
frontend/src/pages/Shipping/ServiceDetailPage.jsx - Localized pages → Fulfillment: routes to
frontend/src/router/routes.js - Visitor → Catalog pages: browses
- Localized pages → Catalog pages: routes to
frontend/src/router/routes.js - Localized pages → Product detail: routes to
frontend/src/router/routes.js - Product detail → Product API client: requests product
frontend/src/pages/ProductDetailPage/ProductDetailPage.jsx - Administrator → Admin pages: manages content
- Localized pages → Admin pages: routes to
frontend/src/router/routes.js - Localized pages → Login: routes to
frontend/src/router/routes.js - Localized pages → Registration: routes to
frontend/src/router/routes.js - Login → User API client: uses
frontend/src/pages/Login/Login.jsx - HTTP server entry → API route registry: mounts
backend/index.js - API route registry → Product routes: registers
backend/src/routers/index.router.js - API route registry → Content routes: registers
backend/src/routers/index.router.js - Product routes → Product operations: dispatches
backend/src/routers/product.router.js - Product routes → Admin authorization: protects writes
backend/src/routers/product.router.js - Product operations → Product records: reads and writes
backend/src/controller/product.controller.js - Product operations → Category records: updates categories
backend/src/controller/product.controller.js - Product operations → Cloudinary: uploads images
backend/src/controller/product.controller.js - Content routes → Site content operations: dispatches
backend/src/routers/policy.routes.js - Content routes → Admin authorization: protects writes
backend/src/routers/policy.routes.js - HTTP server entry → MongoDB: connects
backend/index.js - Contact form handler → Email service: sends contact data
backend/src/mailer/mailer.controller.js - Email service → Email templates: fills templates
backend/src/mailer/mail.service.js - Email service → Brevo email: sends email
backend/src/mailer/mail.service.js