Skip to content

taskmasterpeace/hey-its-my-contractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

127 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hey, It's My Contractor πŸ—οΈ

AI-Powered Contractor Management Platform with AAD (AI Art Director) Generation System

Deploy with Vercel GitHub GitHub Stars

🎯 Overview

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.

πŸ”₯ Key Features

  • πŸͺ„ 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

πŸš€ Live Demo

Production URL: hey-its-my-contractor.vercel.app

Try the AAD System:

  1. Search: Find design elements from major retailers
  2. Magic Wand: Click πŸͺ„ on any image to edit with AI
  3. AI Generator: Combine multiple references for new designs
  4. Upload: Add your own images to the library

πŸ› οΈ Technology Stack

Frontend

  • Next.js 14 - React framework with App Router
  • TypeScript - Type safety and developer experience
  • Tailwind CSS - Utility-first styling
  • Lucide React - Modern icon system

AI Integration

  • 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

Backend & APIs

  • Google Custom Search - Retailer image discovery
  • Image Download System - Local storage for external images
  • Environment Configuration - Secure API key management

Deployment

  • Vercel - Serverless deployment platform
  • GitHub Integration - Automated deployments
  • Environment Variables - Secure configuration

πŸ“ Project Structure

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

πŸ”§ Installation & Setup

Prerequisites

  • Node.js 18+
  • npm or yarn
  • API Keys (Google Custom Search, Replicate)

1. Clone Repository

git clone https://github.com/taskmasterpeace/hey-its-my-contractor.git
cd hey-its-my-contractor

2. Install Dependencies

cd web
npm install

3. Environment Variables

Create .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_token

4. Start Development Server

npm run dev

Visit http://localhost:3000/images to access the AAD system.

Architecture Overview

This monorepo contains:

  • web/: Next.js web application
  • mobile/: React Native mobile app (Expo)
  • services/: Backend services
    • chat/: Rocket.Chat integration
    • auth/: Ory Kratos authentication
    • docs/: Document management
    • uploads/: File upload service (Uppy + tusd)
  • shared/: Shared components and utilities
  • deployment/: Docker and deployment configurations

Core Features

Calendar-Centric Design

  • Calendar serves as the command center
  • All meetings, deliveries, and milestones in one view
  • Mobile-first navigation with bottom tabs

Meeting Intelligence

  • Auto-transcription with AssemblyAI
  • Action item extraction with dual acknowledgment
  • Audio playback with waveform visualization

Field Documentation

  • Mobile photo/voice capture
  • Offline-first with resumable uploads
  • Weather and GPS integration

Communication

  • Project-specific chat channels
  • Real-time messaging with image sharing
  • Client portal integration

Technology Stack

  • Frontend: React, Next.js, React Native (Expo)
  • Backend: Supabase (Postgres, Auth, Realtime, Storage)
  • Authentication: Ory Kratos + Casbin RBAC
  • Deployment: Vercel + Supabase Edge Functions

Development Setup

Prerequisites

  • Node.js 18+ and npm 9+
  • Docker and Docker Compose
  • Git

Quick Start

  1. Clone the repository:

    git clone <repository-url>
    cd contractor-platform
  2. Copy environment variables:

    cp .env.example .env
  3. Start the development environment:

    docker-compose up -d
  4. Install dependencies:

    npm install
  5. 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

Services

Database Management

# 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

Common Commands

# 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 lint

License

MIT License - see LICENSE file for details# Framework fix applied Mon, Sep 1, 2025 3:14:01 AM

About

AI-powered contractor management platform with AAD (AI Art Director) generation system. Features real-time image enhancement, smart model selection, and professional branding for contractors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages