# Multilingual Mandi Platform
A web-based multilingual trading platform that bridges language barriers in local marketplaces through real-time translation, AI-driven price discovery, and intelligent negotiation tools.
## Features
- **Real-time Multilingual Communication**: AI-powered translation supporting 20+ languages
- **AI-driven Price Discovery**: Intelligent pricing recommendations based on market data
- **Intelligent Negotiation Tools**: Structured negotiation workflows with fairness indicators
- **Vendor Management**: Comprehensive vendor discovery and management system
- **Trade Session Management**: Complete interaction tracking from inquiry to completion
- **Market Analytics**: Privacy-preserving analytics and market intelligence
- **Real-time Communication**: WebSocket-based instant messaging and notifications
- **Mobile-responsive Interface**: Optimized for all device types
## Technology Stack
### Backend
- **Node.js** with **Express.js** - REST API and server framework
- **TypeScript** - Type-safe development
- **Socket.IO** - Real-time WebSocket communication
- **PostgreSQL** - Primary database for transactional data
- **MongoDB** - Analytics and unstructured data storage
- **Redis** - Caching, session management, and pub/sub messaging
### Testing
- **Jest** - Unit testing framework
- **fast-check** - Property-based testing library
- **Supertest** - API testing utilities
### External Services
- **Google Cloud Translation API** - Primary translation service
- **Azure Translator** - Fallback translation service
## Quick Start
### Prerequisites
- Node.js 18+
- PostgreSQL 12+
- MongoDB 4.4+
- Redis 6+
### Installation
1. **Clone the repository**
```bash
git clone
cd multilingual-mandi
```
2. **Install dependencies**
```bash
npm install
```
3. **Set up environment variables**
```bash
cp .env.example .env
# Edit .env with your database credentials and API keys
```
4. **Set up databases**
**PostgreSQL:**
```bash
# Create database
createdb mul …