This repository contains a full-stack application for optimizing Amazon product listings using AI. The system allows users to input a product URL, fetches the corresponding product details, and generates optimized content (title, bullet points, description, and keywords) using an AI model (OpenAI or Gemini). The application stores both the original and optimized listings, provides a side-by-side comparison, and maintains a history of all optimizations for each ASIN.
- Backend: Node.js, TypeScript, Express, Prisma ORM (MySQL)
- Frontend: React, TypeScript, Vite
- AI Integration: OpenAI (default) or Gemini (configurable)
- Product Data API: Rainforest API (recommended), Keepa, or Amazon PA-API
- DevOps: Docker Compose for local development and deployment
- Fetch Amazon product details by ASIN
- Optimize listing content using AI
- Store and compare original and optimized listings
- Track optimization history for each ASIN
- Modern, user-friendly web interface
git clone https://github.com/kumarBisho/Amazon-Product-Optimizer.git
cd Amazon-ASIN-OptimizerCopy the example environment files and fill in your credentials:
- Backend:
cp backend/.env.example backend/.env - Frontend:
cp frontend/.env.example frontend/.env
Edit the .env files to set your database credentials, API keys, and AI model preferences.
Create a MySQL database (default: salesduo). Example using MySQL CLI:
mysql -u root -p
CREATE DATABASE optimization;
EXIT;cd backend
npm install
npx prisma generate
npx prisma migrate dev --name init
npm run devThe backend will start on port 4000 by default.
cd ../frontend
npm install
npm run devThe frontend will start on port 5173 by default.
To run the entire stack (database, backend, frontend) with Docker Compose:
docker-compose up --buildThis will launch MySQL, the backend, and the frontend in containers.
backend/— Express API, Prisma ORM, AI integrationfrontend/— React UI, Vite configdocker-compose.yml— Multi-service orchestration.env.example— Example environment files for configuration
- Efficiently optimize Amazon product listings using state-of-the-art AI
- View and compare original vs. optimized content for each ASIN
- Track and audit the history of all optimizations performed
- Ready for deployment on cloud platforms or local development
Push your repository to GitHub. You can deploy the backend on platforms like Render, Railway, or your own server, and the frontend on Vercel, Netlify, or similar services. Ensure environment variables are set appropriately in your deployment environment.
For further details, see the backend/README.md and frontend/README.md files.


