Skip to content

MRKrog/Drive-Value-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Drive Value AI - AI-Powered Vehicle Valuation Platform

A modern vehicle valuation platform that uses Claude AI to provide real-time market analysis for cars. Built with React, Material-UI, and Node.js to deliver professional-grade vehicle intelligence.

🎯 Current Status

Drive Value AI is a working MVP with core functionality implemented across three services:

  • πŸš— Frontend App - React + Material-UI interface with authentication
  • πŸ€– AI Backend - Claude AI integration for vehicle valuations
  • πŸ‘€ User API - Google OAuth authentication and user management

βœ… What's Currently Built

Frontend (React App)

  • βœ… Authentication System - Google OAuth login/register
  • βœ… Home Page - Professional landing page with stats
  • βœ… Search Page - VIN input with validation and search functionality
  • βœ… Vehicle Drawer - Detailed vehicle information display
  • βœ… History Page - Search history and favorites
  • βœ… Profile Page - User profile management
  • βœ… Responsive Design - Mobile-optimized Material-UI interface
  • βœ… State Management - Redux Toolkit for app state

AI Backend (Valuation Engine)

  • βœ… VIN Decoding - Auto.dev API integration for vehicle specs
  • βœ… Claude AI Analysis - Advanced market valuation prompts
  • βœ… Condition-Based Pricing - Dynamic adjustments based on condition
  • βœ… Performance Vehicle Analysis - Specialized high-performance car analysis
  • βœ… Test Mode - Mock responses for development
  • βœ… API Endpoints - /api/valuation, /api/test-valuation

User API (Authentication)

  • βœ… Google OAuth - Seamless Google sign-in integration
  • βœ… JWT Authentication - Secure token-based auth
  • βœ… User Management - Profile, preferences, statistics
  • βœ… MongoDB Integration - User data persistence
  • βœ… Admin Features - User administration and role management

πŸ—οΈ Technical Architecture

Frontend (React + Material-UI)

  • Framework: React 18 with Vite
  • UI Library: Material-UI v5 with custom dark theme
  • State Management: Redux Toolkit
  • Routing: React Router v6
  • Authentication: Google OAuth integration
  • Styling: Custom theme with Space Grotesk fonts

AI Backend (Node.js + Express)

  • Framework: Express.js server
  • AI Integration: Claude AI API with advanced prompts
  • VIN Decoding: Auto.dev API integration
  • Validation: VIN format and condition validation
  • Testing: Mock responses for development

User API (Node.js + MongoDB)

  • Database: MongoDB with Mongoose ODM
  • Authentication: Google OAuth + JWT tokens
  • Security: Helmet, CORS, input validation
  • Features: User profiles, preferences, statistics

🎯 Current Capabilities

Vehicle Valuation

  • βœ… VIN Input & Validation - 17-character VIN format checking
  • βœ… Vehicle Decoding - Automatic specification extraction
  • βœ… AI Market Analysis - Claude AI-powered valuation
  • βœ… Condition Adjustments - Excellent, good, fair, poor pricing
  • βœ… Performance Vehicles - Specialized analysis for sports cars
  • βœ… Multiple Value Types - Retail, private party, trade-in values

User Experience

  • βœ… Google Authentication - One-click sign-in
  • βœ… Search History - Track previous valuations
  • βœ… Favorites System - Save interesting vehicles
  • βœ… Responsive Design - Works on all devices
  • βœ… Professional UI - Clean, modern interface
  • βœ… Real-time Validation - Instant VIN format checking

🎯 Next Steps & Goals

Immediate Priorities (Next 2-4 Weeks)

1. Connect Frontend to Backend

  • πŸ”§ API Integration - Connect React app to AI backend
  • πŸ”§ Authentication Flow - Connect Google OAuth to user API
  • πŸ”§ Error Handling - Robust error states and loading indicators
  • πŸ”§ Environment Setup - Proper API endpoint configuration

2. Core Feature Completion

  • πŸ“„ PDF Report Generation - Downloadable valuation reports
  • πŸ’³ Payment Integration - Stripe for premium reports
  • πŸ“§ Email Reports - Send reports via email
  • πŸ” Enhanced Search - Better vehicle information display

3. User Experience Polish

  • πŸ“± Mobile Optimization - Touch-friendly interface improvements
  • ⚑ Performance - Faster loading and better caching
  • 🎨 UI Refinements - Polish animations and interactions
  • πŸ”’ Security - Input sanitization and API security

Medium-term Goals (1-3 Months)

Business Features

  • πŸ“Š Analytics Dashboard - User statistics and usage metrics
  • πŸ’° Subscription Plans - Free vs premium tiers
  • πŸ“ˆ Market Trends - Historical pricing data
  • πŸͺ Dealer Tools - Bulk VIN processing for dealers

Technical Improvements

  • πŸ—„οΈ Database Integration - Persistent storage for valuations
  • πŸ”„ Caching Layer - Redis for performance
  • πŸ“Š Monitoring - Error tracking and performance metrics
  • πŸš€ Deployment - Production deployment setup

Long-term Vision (3-6 Months)

Platform Expansion

  • πŸ”Œ API Access - Public API for third-party integration
  • πŸ“± Mobile App - React Native mobile application
  • πŸ€– Advanced AI - More sophisticated valuation algorithms
  • 🌍 Market Expansion - International markets and currencies

πŸš€ Quick Start

Prerequisites

  • Node.js (v18 or higher)
  • MongoDB (local or Atlas)
  • Claude AI API key
  • Google OAuth credentials

Setup Instructions

  1. Clone and Install:

    git clone <your-repo>
    cd Drive-Value-AI
    
    # Install frontend dependencies
    cd drive-value-ai-frontend
    npm install
    
    # Install backend dependencies
    cd ../autovalidation-backend
    npm install
    
    # Install user API dependencies
    cd ../drive-value-user-api
    npm install
  2. Environment Configuration:

    # AI Backend (.env)
    CLAUDE_API_KEY=your_claude_api_key
    AUTO_DEV_API_KEY=your_auto_dev_api_key
    PORT=3001
    
    # User API (.env)
    MONGODB_URI=mongodb://localhost:27017/drivevalue
    GOOGLE_CLIENT_ID=your_google_client_id
    GOOGLE_CLIENT_SECRET=your_google_client_secret
    JWT_SECRET=your_jwt_secret
    
    # Frontend (.env)
    VITE_API_URL=http://localhost:3001
    VITE_USER_API_URL=http://localhost:3002
  3. Start All Services:

    # Terminal 1 - AI Backend
    cd autovalidation-backend
    npm run dev
    
    # Terminal 2 - User API
    cd drive-value-user-api
    npm run dev
    
    # Terminal 3 - Frontend
    cd drive-value-ai-frontend
    npm run dev
  4. Access the Application:

    • Frontend: http://localhost:5173
    • AI Backend: http://localhost:3001
    • User API: http://localhost:3002

πŸ› οΈ Development Scripts

Frontend

  • npm run dev - Development server
  • npm run build - Production build
  • npm run preview - Preview build

Backend Services

  • npm run dev - Development with auto-restart
  • npm start - Production mode
  • npm test - Run tests

πŸ“Š Current Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Frontend      β”‚    β”‚   AI Backend    β”‚    β”‚   User API      β”‚
β”‚   (React)       β”‚    β”‚   (Node.js)     β”‚    β”‚   (Node.js)     β”‚
β”‚   Port: 5173    β”‚    β”‚   Port: 3001    β”‚    β”‚   Port: 3002    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β€’ Authentication│◄──►│ β€’ VIN Decoding  β”‚    β”‚ β€’ Google OAuth  β”‚
β”‚ β€’ Search UI     β”‚    β”‚ β€’ Claude AI     β”‚    β”‚ β€’ User Profiles β”‚
β”‚ β€’ Results       β”‚    β”‚ β€’ Valuation     β”‚    β”‚ β€’ JWT Tokens    β”‚
β”‚ β€’ History       β”‚    β”‚ β€’ Mock Testing  β”‚    β”‚ β€’ MongoDB       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸŽ‰ Ready for Development

The platform has a solid foundation with:

  • βœ… Working authentication system
  • βœ… AI-powered valuation engine
  • βœ… Professional user interface
  • βœ… Modular, scalable architecture

Perfect for building the next generation of vehicle valuation intelligence! πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages