An intelligent luxury e-commerce platform powered by AI agents that provides personalized shopping experiences through natural language conversations and voice-first interfaces. Please not backend is deployed at: https://adogent.onrender.com
- About
- Features
- Technology Stack
- Project Structure
- Getting Started
- Usage
- AI Agents
- API Documentation
- Development
- Testing
- Deployment
- Contributing
- License
ADOGENT is a cutting-edge AI-powered e-commerce platform that revolutionizes online shopping through intelligent agent interactions. Built for modern consumers who demand personalized, conversational, and intuitive shopping experiences.
- 🤖 AI Shopping Assistants: Groq-powered agents for intelligent product discovery
- 🎙️ Voice-First Interface: Natural language shopping through voice and text
- 🛍️ Luxury Commerce: Premium shopping experience with personalized recommendations
- ⚡ Ultra-Fast Responses: Sub-second AI interactions using Groq's lightning-fast LLM API
- 🔐 Secure & Scalable: Enterprise-grade security with AWS cloud infrastructure
- Product Catalog: Comprehensive inventory with new and second-hand items
- Smart Search: AI-powered product discovery with natural language queries
- User Profiles: Dynamic user profiling through conversation analysis
- Order Management: Complete order lifecycle from cart to delivery
- Secure Payments: Safe and encrypted payment processing
- Conversational Shopping: Chat naturally with AI agents to find products
- Voice Commerce: Shop hands-free using voice commands
- Personalized Recommendations: ML-driven product suggestions
- Intent Recognition: Advanced NLP for understanding user needs
- Context Awareness: Maintain conversation history across sessions
- Luxury Design: Premium UI with dark mode and elegant animations
- Responsive Interface: Seamless experience across all devices
- Accessibility: Voice-first design ensures inclusive access
- Real-time Updates: Live order tracking and notifications
- React 18 - Modern UI library with hooks and concurrent features
- TypeScript - Type-safe JavaScript for better development
- Vite - Lightning-fast build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - Beautiful and accessible React components
- React Router - Declarative routing for React
- TanStack Query - Powerful data synchronization
- FastAPI - Modern Python web framework
- SQLAlchemy - Async ORM for database operations
- PostgreSQL - Robust relational database
- Redis - In-memory caching and session storage
- Alembic - Database migration management
- Pydantic - Data validation using Python type hints
- Groq - Ultra-fast LLM API for AI agents
- Custom AI Agents - Specialized agents for different e-commerce functions
- Natural Language Processing - Advanced text and speech processing
- Machine Learning Models - Recommendation algorithms and user profiling
- Docker - Containerization for consistent deployments
- AWS ECS - Container orchestration
- AWS RDS - Managed database service
- GitHub Actions - CI/CD automation
adogent/
├── 📱 Frontend (React/TypeScript)
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Application pages
│ │ ├── hooks/ # Custom React hooks
│ │ ├── lib/ # Utility functions
│ │ └── assets/ # Static assets
│ ├── public/ # Public static files
│ ├── package.json # Node.js dependencies
│ └── vite.config.ts # Vite configuration
│
├── 🔧 Backend (Python/FastAPI)
│ ├── app/
│ │ ├── api/ # API route handlers
│ │ ├── agents/ # AI agent implementations
│ │ ├── services/ # Business logic layer
│ │ ├── db/ # Database models
│ │ ├── schemas/ # Pydantic schemas
│ │ └── utils/ # Shared utilities
│ ├── tests/ # Test suite
│ ├── docker/ # Docker configurations
│ ├── requirements.txt # Python dependencies
│ └── pyproject.toml # Python project config
│
├── 🚀 Infrastructure
│ ├── .github/workflows/ # CI/CD pipelines
│ ├── docker-compose.yml # Development environment
│ └── infrastructure/ # AWS configurations
│
└── 📚 Documentation
├── README.md # This file
├── CONTRIBUTING.md # Contribution guidelines
└── docs/ # Additional documentation
- Node.js 18+ - Install with nvm
- Python 3.11+ - Download Python
- Docker & Docker Compose - Install Docker
- Groq API Key - Get your API key
-
Clone the repository
git clone https://github.com/miracle078/adogent.git cd adogent -
Frontend Development
# Install dependencies npm install # Start development server npm run dev # Access at http://localhost:8080
-
Backend Development
# Navigate to backend cd backend # Install dependencies pip install -r requirements.txt # Set up environment variables cp .env.example .env # Edit .env with your configuration # Start backend server uvicorn app.main:app --reload # Access API docs at http://localhost:8000/docs
-
Full Stack with Docker
# Start all services docker-compose up --build # Frontend: http://localhost:8080 # Backend: http://localhost:8000 # API Docs: http://localhost:8000/docs
Create a .env file in the backend directory:
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/adogent
REDIS_URL=redis://localhost:6379
# AI Services
GROQ_API_KEY=your_groq_api_key
# Security
JWT_SECRET_KEY=your-secret-key-here
JWT_ALGORITHM=HS256
# AWS (for production)
AWS_ACCESS_KEY_ID=your_aws_key
AWS_SECRET_ACCESS_KEY=your_aws_secret
AWS_REGION=us-east-1The React frontend provides a modern, responsive interface for:
- Product Browsing: Explore products with advanced filtering
- Voice Shopping: Use voice commands to search and shop
- AI Chat: Converse with shopping assistants
- User Dashboard: Manage orders and preferences
The FastAPI backend exposes RESTful APIs:
# Authentication
POST /api/auth/register # User registration
POST /api/auth/login # User login
POST /api/auth/logout # User logout
# Products
GET /api/products # Browse products
POST /api/products/search # Search products
GET /api/products/{id} # Product details
# AI Agents
POST /api/agents/chat # Chat with AI assistant
POST /api/agents/voice # Voice interactions
GET /api/agents/recommendations # Get recommendations
# Orders
POST /api/orders # Create order
GET /api/orders/{id} # Order details
GET /api/orders/history # Order historyInteract naturally with the platform:
"Show me laptops under $1000"
"Find wireless headphones with good reviews"
"What would you recommend for a student?"
"Add the MacBook Pro to my cart"
"What's the status of my order?"
ADOGENT features specialized AI agents powered by Groq's ultra-fast LLM API:
- Product Discovery: Find products based on natural language queries
- Specification Matching: Match products to user requirements
- Price Analysis: Compare prices and suggest best deals
- Inventory Awareness: Real-time stock information
- Personalized Suggestions: AI-powered product recommendations
- Cross-selling: Suggest complementary products
- Trend Analysis: Identify popular and trending items
- User Behavior Learning: Adapt recommendations based on interactions
- Order Assistance: Help with order tracking and issues
- Product Information: Detailed product specifications
- Return Processing: Guide users through returns
- Technical Support: Troubleshoot platform issues
- Speech Recognition: Convert voice input to text
- Intent Recognition: Understand user intent from natural language
- Multimodal Response: Respond via voice and text
- Context Awareness: Maintain conversation context
Access comprehensive API documentation:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc - OpenAPI Schema:
http://localhost:8000/openapi.json
Most endpoints require JWT authentication:
# Login to get token
curl -X POST "http://localhost:8000/api/auth/login" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "password"}'
# Use token in requests
curl -H "Authorization: Bearer YOUR_JWT_TOKEN" \
"http://localhost:8000/api/protected-endpoint"# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Lint code
npm run lintcd backend
# Install development dependencies
pip install -r requirements-dev.txt
# Format code
black app/
# Lint code
ruff check app/
# Type checking
mypy app/
# Database migrations
alembic upgrade head# Frontend
npm run dev # Start dev server
npm run build # Build for production
npm run lint # Lint TypeScript/React
# Backend
make dev # Start development server
make test # Run tests
make format # Format code
make lint # Lint Python code
make migrate # Run database migrations# Run tests (when configured)
npm test
# Run tests with coverage
npm run test:coveragecd backend
# Run all tests
pytest
# Run with coverage
pytest --cov=app
# Run specific test file
pytest tests/api/test_products.py
# Run with verbose output
pytest -v- Unit Tests: Test individual functions and methods
- Integration Tests: Test API endpoints and database interactions
- Agent Tests: Test AI agent functionality with mocked APIs
- E2E Tests: Full application flow testing
# Using Docker Compose
docker-compose up --build
# Access the application
# Frontend: http://localhost:8080
# Backend: http://localhost:8000- Connect your repository to Lovable
- Click "Share" → "Publish"
- Your app will be deployed automatically
# Build and push Docker images
docker build -t adogent-frontend .
docker build -t adogent-backend ./backend
# Deploy using AWS ECS
# (Configure your AWS credentials first)
aws ecs create-service --service-name adogent --cluster production# Deploy frontend to Vercel
npx vercel --prod
# Deploy backend to Railway
# Connect your GitHub repository to RailwayProduction Environment Variables:
# Frontend (.env.production)
VITE_API_URL=https://api.adogent.com
VITE_ENVIRONMENT=production
# Backend (production.env)
DATABASE_URL=postgresql://user:pass@prod-db:5432/adogent
REDIS_URL=redis://prod-redis:6379
GROQ_API_KEY=prod_groq_key
JWT_SECRET_KEY=secure-production-secretWe welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch:
git checkout -b feat/amazing-feature - Make your changes: Follow our coding standards
- Test your changes: Ensure all tests pass
- Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feat/amazing-feature - Open a Pull Request
- Follow TypeScript/Python best practices
- Write comprehensive tests
- Update documentation
- Follow conventional commit format
- Ensure all CI checks pass
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Groq for ultra-fast LLM API
- Lovable for development platform
- shadcn/ui for beautiful components
- FastAPI for the amazing Python framework
Built with ❤️ by The Golden Age
🔗 Live Demo • 📖 Documentation • 🐛 Report Bug • ✨ Request Feature
⭐ Star us on GitHub if this project helped you!
