Morocco's leading AI-powered B2B wholesale marketplace. Connecting retailers directly with suppliers through visual search, real-time notifications, and direct communication channels
# jmlamaroc - Premium Wholesale Marketplace
jmlamaroc is a high-performance, full-stack wholesale marketplace designed to connect suppliers and buyers with a seamless, AI-powered experience. Built with a focus on speed, security, and visual discovery.
## Key Features
### AI Visual Search (New!)
* **Visual Fingerprinting**: Uses **TensorFlow.js (MobileNet)** to analyze product images and generate 1024-dimension embeddings.
* **Vector Search**: Integrated with **MongoDB Atlas Vector Search** for lightning-fast image-to-image matching.
* **Discovery**: Buyers can upload photos or click search icons on existing products to find similar wholesale items instantly.
### Dual Ecosystem
* **Supplier Portal**: Dedicated dashboard for store management, product uploads with automatic AI indexing, and cover image customization.
* **Buyer Dashboard**: Clean interface for browsing, favoriting products, and tracking support requests.
### Enterprise-Grade Security
* **Session Isolation**: Custom context-aware authentication that prevents session leakage between Admin and User tabs.
* **Role-Based Access**: Secure middleware for Admin, Supplier, and Buyer roles.
### Professional Support System
* **Ticket Tracking**: Integrated support system allowing users to submit tickets and track real-time status updates (Pending, In-Progress, Resolved).
* **Admin Management**: Powerful admin interface for managing community health and support resolutions.
---
## Tech Stack
* **Frontend**: React (Vite), TypeScript, Tailwind CSS, Lucide Icons.
* **Backend**: Node.js, Express, MongoDB Atlas.
* **AI/ML**: TensorFlow.js (MobileNet), jpeg-js/pngjs decoders.
* **Storage**: Cloudinary (Image management).
* **Styling**: Premium Custom UI with Glassmorphism and Micro-animations.
---
## Installation & Setup
### 1. Prerequisites
* Node.js (v18+)
* MongoDB Atlas Account
* Cloudinary Account
### 2. Backend Setup
```bash
cd server
npm install
```
Create a …