AI-Powered Contractor Management Platform with AAD (AI Art Director) Generation System
Hey, It's My Contractor is a revolutionary contractor management platform featuring the world's first AAD (AI Art Director) generation system. Built for contractors to enhance visual communication with clients through real-time AI image generation and professional project management tools.
- πͺ Magic Wand Enhancement: Click any image to edit with AI using style references
- π¨ AI Generator: Combine multiple reference images into new designs
- π€ Smart Model Selection: Auto-selects optimal AI model based on image count
- πͺ Multi-Retailer Search: Home Depot, Lowe's, Wayfair, Ferguson, Houzz integration
- π± Professional Branding: "Loudon Construction" watermarked AI-generated images
- β¬οΈ Upload System: Users can upload images without watermarks
- π Full Screen Mode: View generated images in high resolution
Production URL: hey-its-my-contractor.vercel.app
- Search: Find design elements from major retailers
- Magic Wand: Click πͺ on any image to edit with AI
- AI Generator: Combine multiple references for new designs
- Upload: Add your own images to the library
- Next.js 14 - React framework with App Router
- TypeScript - Type safety and developer experience
- Tailwind CSS - Utility-first styling
- Lucide React - Modern icon system
- Replicate API - Real AI image generation
- Google Nano Banana - Style transfer and image editing
- RunwayML Gen4 Turbo - Multi-image combination
- Smart Model Selection - Automatic optimization
- Google Custom Search - Retailer image discovery
- Image Download System - Local storage for external images
- Environment Configuration - Secure API key management
- Vercel - Serverless deployment platform
- GitHub Integration - Automated deployments
- Environment Variables - Secure configuration
hey-its-my-contractor/
βββ web/ # Next.js application
β βββ src/
β β βββ app/
β β β βββ images/ # AAD Generation System
β β β β βββ page.tsx # Main images interface
β β β βββ api/
β β β β βββ replicate/ # AI generation API
β β β β βββ google-images/ # Search integration
β β β β βββ images/ # Image download system
β β β βββ layout.tsx # App layout
β β βββ components/
β β β βββ images/ # AAD Components
β β β β βββ MagicWandModal.tsx
β β β βββ dashboard/ # Dashboard widgets
β β β βββ layout/ # Layout components
β β β βββ ui/ # Shared UI components
β β βββ store/ # State management
β βββ public/
β β βββ downloaded-images/ # Local image storage
β βββ package.json
β βββ next.config.js
βββ docs/ # Documentation
βββ deployment/ # Deployment configs
βββ services/ # Backend services
βββ shared/ # Shared utilities
βββ REPLICATE-INTEGRATION.md # AI integration guide
βββ README.md # This file
- Node.js 18+
- npm or yarn
- API Keys (Google Custom Search, Replicate)
git clone https://github.com/taskmasterpeace/hey-its-my-contractor.git
cd hey-its-my-contractorcd web
npm installCreate .env.local in the /web directory:
# Google Custom Search API
GOOGLE_SEARCH_API_KEY=your_google_api_key
GOOGLE_CSE_ID=your_custom_search_engine_id
# Replicate AI Generation
REPLICATE_API_TOKEN=your_replicate_api_tokennpm run devVisit http://localhost:3000/images to access the AAD system.
This monorepo contains:
- web/: Next.js web application
- mobile/: React Native mobile app (Expo)
- services/: Backend services
chat/: Rocket.Chat integrationauth/: Ory Kratos authenticationdocs/: Document managementuploads/: File upload service (Uppy + tusd)
- shared/: Shared components and utilities
- deployment/: Docker and deployment configurations
- Calendar serves as the command center
- All meetings, deliveries, and milestones in one view
- Mobile-first navigation with bottom tabs
- Auto-transcription with AssemblyAI
- Action item extraction with dual acknowledgment
- Audio playback with waveform visualization
- Mobile photo/voice capture
- Offline-first with resumable uploads
- Weather and GPS integration
- Project-specific chat channels
- Real-time messaging with image sharing
- Client portal integration
- Frontend: React, Next.js, React Native (Expo)
- Backend: Supabase (Postgres, Auth, Realtime, Storage)
- Authentication: Ory Kratos + Casbin RBAC
- Deployment: Vercel + Supabase Edge Functions
- Node.js 18+ and npm 9+
- Docker and Docker Compose
- Git
-
Clone the repository:
git clone <repository-url> cd contractor-platform
-
Copy environment variables:
cp .env.example .env
-
Start the development environment:
docker-compose up -d
-
Install dependencies:
npm install
-
Start the applications:
# Start both web and mobile npm run dev # Or individually: npm run dev:web # Next.js web app on http://localhost:3000 npm run dev:mobile # Expo mobile app
- Web App: http://localhost:4000 (FieldTime Platform)
- Mobile App: Use Expo CLI or QR code
- Database: PostgreSQL on localhost:5432
- Kratos Auth: Public API on localhost:4433, Admin API on localhost:4434
- Rocket.Chat: http://localhost:3001
- InvoicePlane: http://localhost:8080 (MIT Licensed Invoicing)
- MinIO Storage: http://localhost:9000 (Console: http://localhost:9001)
- MailHog (Email): http://localhost:8025
- File Upload: http://localhost:1080
# View database in container
docker exec -it contractor-postgres psql -U postgres -d contractor_platform
# Reset database (warning: destroys data)
docker-compose down -v
docker-compose up -d postgres# Install dependencies for all workspaces
npm install
# Build all projects
npm run build
# Run tests
npm run test
# Type checking
npm run type-check
# Linting
npm run lintMIT License - see LICENSE file for details# Framework fix applied Mon, Sep 1, 2025 3:14:01 AM