Hung Yen E-commerce Platform
Overview
Hung Yen E-commerce is a comprehensive B2B e-commerce solution built on MedusaJS, designed to handle complex business requirements including approval workflows, company management, and quote systems.
Key Features
B2B Capabilities
- ๐ข Company Management: Multi-company support with hierarchical structures
- ๐ฅ Employee Management: Role-based access for company employees
- โ Approval Workflows: Customizable approval chains for purchases
- ๐ฐ Spending Limits: Budget controls at company and employee levels
- ๐ Quote System: Request and manage quotes from suppliers
Core E-commerce Features
- ๐๏ธ Product Catalog: Advanced product management with variants
- ๐ Shopping Cart: B2B-optimized cart with approval requirements
- ๐ฆ Order Management: Complex order workflows
- ๐ณ Payment Integration: Multiple payment methods
- ๐ Shipping: Flexible shipping options
Technology Stack
Backend
- MedusaJS: E-commerce engine
- PostgreSQL: Database
- Redis: Caching and sessions
- TypeScript: Type safety
Frontend
- Next.js: Storefront application
- Tailwind CSS: Styling
- TypeScript: Type safety
Admin
- MedusaJS Admin: Extended with custom modules
- React: UI framework
Architecture
hung-yen-ecommerce/
โโโ backend/ # MedusaJS backend
โ โโโ src/
โ โ โโโ modules/ # Custom modules (company, approval, quote)
โ โ โโโ api/ # API extensions
โ โ โโโ workflows/ # Business workflows
โโโ storefront/ # Next.js frontend
โโโ admin/ # Admin panel customizations
Custom Modules
Company Module
- Company registration and management
- Employee invitation system
- Company settings and preferences
Approval Module
- Approval chain configuration
- Spending limit enforcement
- Approval status tracking
Quote Module
- Quote request creation
- Quote management
- Quote-to-order conversion
Getting Started
- Backend Setup: See Setup Guide
- Storefront Development: Check Storefront Guide
- Admin Customization: Review Admin Panel
Integration Points
- ERP Systems: Order and inventory sync
- Accounting Software: Financial data export
- CRM: Customer data synchronization
- Email Service: Transactional emails
Deployment
The platform is containerized and deployed using:
- Docker for containerization
- Kubernetes for orchestration
- GitHub Actions for CI/CD
Key Workflows
Purchase Approval Flow
- Employee adds items to cart
- System checks spending limits
- Approval request created if needed
- Approver reviews and approves/rejects
- Order proceeds if approved
Quote Request Flow
- Employee creates quote request
- Admin processes quote request
- Quote sent to customer
- Customer accepts/negotiates
- Quote converted to order
Support
For assistance:
- Review the B2B Features Guide
- Check the FAQ
- Contact the e-commerce team