A modern e-commerce platform built with React, Node.js, and advanced AI capabilities using RAG (Retrieval-Augmented Generation) technology.
- AI-Powered Product Search: Advanced search capabilities using RAG technology
- Modern UI/UX: Built with React, Tailwind CSS, and Shadcn UI components
- Secure Authentication: Google OAuth and JWT-based authentication
- Payment Integration: Razorpay payment gateway integration
- Vector Database: Qdrant for efficient similarity search
- AI Chat: Google's Generative AI for intelligent product recommendations
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Shadcn UI Components
- React Query
- Zustand (State Management)
- React Router DOM
- Node.js
- Express.js
- MongoDB
- Qdrant (Vector Database)
- Google Generative AI
- JWT Authentication
- Razorpay Integration
- Ollama (Local LLM)
- Node.js 18.x
- MongoDB
- Qdrant Server
- Google Cloud Platform Account (for Generative AI)
- Razorpay Account
- Ollama (for local LLM capabilities)
- Download and install Ollama from https://ollama.ai/download
- After installation, pull the required models:
# Pull the base model ollama pull granite-embedding:latest It run at http://localhost:11434/api/embeddings # Pull the embedding model ollama pull qwen2.5:1.5b It run at http://localhost:11434/api/generate
-
Navigate to the Backend directory:
cd Backend -
Install dependencies:
npm install
-
Create a
.envfile with the following variables:MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret QDRANT_URL=your_qdrant_url GOOGLE_AI_API_KEY=your_google_ai_api_key RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_KEY_SECRET=your_razorpay_key_secret -
Start the backend server:
npm run serve
-
Navigate to the frontend directory:
cd chroma-commerce-chat-main -
Install dependencies:
npm install
-
Start the development server:
npm run dev
MONGODB_URI: MongoDB connection stringJWT_SECRET: Secret key for JWT token generationGOOGLE_CLIENT_ID: Google OAuth client IDGOOGLE_CLIENT_SECRET: Google OAuth client secretQDRANT_URL: Qdrant vector database URLGOOGLE_AI_API_KEY: Google AI API keyRAZORPAY_KEY_ID: Razorpay API key IDRAZORPAY_KEY_SECRET: Razorpay API key secretOLLAMA_BASE_URL: URL for Ollama API (default: http://localhost:11434)
├── Backend/
│ ├── config/
│ ├── controllers/
│ ├── llm/
│ ├── middleware/
│ ├── models/
│ ├── qdrant/
│ ├── routes/
│ ├── utils/
│ └── index.js
│
└── chroma-commerce-chat-main/
├── src/
├── public/
└── package.json
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the ISC License.
- Your Name - Initial work
- Shadcn UI for the beautiful component library
- Google AI for the powerful generative AI capabilities
- Qdrant for the vector database solution
- Ollama for providing local LLM capabilities