Skip to content

Production CRM for carpet cleaning service | $32K contract | Next.js 15, React 19, TypeScript, Supabase, Twilio SMS, Real-time scheduling, Invoicing

License

Notifications You must be signed in to change notification settings

SamShahinDev/dirtfree-crm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dirt Free CRM - Professional Service Management Platform

Production CRM system built for Dirt Free Carpet & Upholstery Cleaning, a Houston-based carpet cleaning company. Complete business management solution replacing paper-based systems with digital automation.

Contract Value: $32,000 project ($2,000 setup + $500/month Γ— 60 months)

🎯 Overview

Full-featured, cloud-based Customer Relationship Management system that digitizes and automates all aspects of service business operations - from customer management to job scheduling, billing, fleet management, and analytics.

Status: Production deployment serving active business operations

πŸ› οΈ Tech Stack

Frontend: Next.js 15.5.3, React 19, TypeScript, Tailwind CSS
UI Components: shadcn/ui component library
Database: Supabase (PostgreSQL) with real-time capabilities
Authentication: Supabase Auth with role-based access control
Communications: Twilio (SMS), Resend (Email)
Payments: Stripe integration (ready for activation)
Hosting: Vercel with global CDN
Monitoring: Sentry error tracking, Vercel Analytics

✨ Core Features

Customer Management

  • Complete customer database with detailed profiles
  • Advanced search and filtering capabilities
  • Bulk CSV import/export
  • Zone-based organization for route optimization
  • Service history tracking with lifetime value calculation
  • Communication preferences (SMS/Email opt-in/out)
  • Customer segmentation and tagging

Job Scheduling & Management

  • Visual calendar interface (day/week/month views)
  • Drag-and-drop scheduling
  • Real-time status workflow: Scheduled β†’ Confirmed β†’ In Transit β†’ In Progress β†’ Completed
  • Technician assignment with workload balancing
  • Before/after photo uploads
  • Digital signature capture
  • Customer rating collection
  • Automated conflict detection

Two-Way SMS Communication

  • Automated appointment reminders (24-hour advance)
  • Customer confirmation system (Reply Y/R/C)
  • On-the-way notifications
  • Service completion alerts
  • Conversation threading
  • STOP/HELP compliance
  • Template management
  • Campaign capabilities

Email System

  • Welcome emails for new customers
  • Appointment confirmations and reminders
  • Invoice delivery
  • Custom React Email templates
  • Delivery tracking and analytics

Invoicing & Billing

  • Automated invoice generation from completed jobs
  • Line-item management with tax calculations
  • Discount application
  • Multiple status tracking: Draft β†’ Pending β†’ Sent β†’ Paid β†’ Overdue
  • PDF generation with professional templates
  • Payment tracking (Cash, Check, Card)
  • Stripe integration for online payments
  • Automated overdue notifications

Fleet Management

  • Vehicle tracking and assignment
  • "Truck Threads" communication board
  • Issue reporting with photo evidence
  • Priority flagging (Low/Medium/High/Urgent)
  • Status tracking (Open β†’ In Progress β†’ Resolved)
  • Maintenance scheduling
  • Equipment/tools inventory

Analytics & Reporting

  • Real-time revenue tracking
  • Payment status monitoring
  • Service profitability analysis
  • Revenue by zone and technician
  • Customer lifetime value calculations
  • Retention and churn analysis
  • Capacity utilization metrics
  • Custom report builder with PDF/Excel export

Smart Scheduling

  • Zone Board View for geographic optimization
  • Route visualization and optimization
  • Travel time calculations
  • Visual capacity indicators
  • Tech Weekly View for individual schedules
  • Real-time availability tracking

πŸ“ Project Structure

dirtfree-crm/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/              # Next.js 14 App Router
β”‚   β”‚   β”œβ”€β”€ (auth)/      # Authentication pages
β”‚   β”‚   β”œβ”€β”€ dashboard/   # Main application
β”‚   β”‚   └── api/         # API routes
β”‚   β”œβ”€β”€ components/       # React components
β”‚   β”œβ”€β”€ lib/             # Utilities and helpers
β”‚   └── types/           # TypeScript definitions
β”œβ”€β”€ supabase/
β”‚   β”œβ”€β”€ migrations/      # Database migrations
β”‚   └── functions/       # Edge functions
β”œβ”€β”€ public/              # Static assets
└── tests/               # Test suites

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Supabase account
  • Twilio account (for SMS)
  • Resend account (for email)

Installation

# Clone repository
git clone https://github.com/SamShahinDev/dirtfree-crm.git
cd dirtfree-crm

# Install dependencies
npm install

# Configure environment
cp .env.example .env.local
# Edit .env.local with your credentials

# Run database migrations
npm run db:migrate

# Start development server
npm run dev

Visit http://localhost:3000

πŸ” Security Features

  • Row-level security in Supabase
  • Middleware-based route protection
  • Rate limiting on API endpoints
  • Secure file upload with validation
  • PII data encryption
  • Audit logging for compliance
  • CORS configuration
  • JWT-based authentication

πŸ“Š Business Impact

Operational Efficiency:

  • 70% reduction in scheduling time
  • 25% improvement in daily job capacity
  • 40% reduction in no-shows via automated reminders
  • Invoice generation: 15 minutes β†’ 1 minute

Customer Experience:

  • Professional automated communications
  • Real-time job status updates
  • Easy rescheduling via SMS
  • Digital receipts and history access

Business Intelligence:

  • Real-time revenue visibility
  • Customer behavior insights
  • Technician performance tracking
  • Predictive analytics foundation

πŸ“± Progressive Web App (PWA)

  • Installable on mobile devices
  • Offline capability ready
  • Touch-optimized interface
  • Camera integration for photos
  • Push notifications
  • GPS integration ready

πŸ”§ Key Technical Implementations

  • Server-side rendering with Next.js 14 App Router
  • Real-time subscriptions via Supabase
  • Optimistic UI updates
  • Virtual scrolling for large datasets
  • Debounced search with caching
  • Background job processing
  • Webhook integrations (Twilio, Stripe)
  • Email templates with React Email

πŸ“ˆ Database Schema

19 main tables including:

  • Core: customers, jobs, services, users, technicians
  • Communication: sms_messages, email_logs
  • Financial: invoices, payments
  • Operations: trucks, zones, reminders
  • Analytics: audit_logs

5 optimized database views for complex queries

🎨 UI/UX Highlights

  • Mobile-first responsive design
  • Dark mode support
  • Accessible (WCAG AA compliant)
  • Intuitive navigation
  • Real-time updates without refresh
  • Professional shadcn/ui components
  • Consistent design system

⚠️ Important Notes

This is a production application built for a real client under contract.

  • Demo credentials available upon request
  • Contains no real customer data (test/mock data only)
  • All API keys and secrets use environment variables
  • Code demonstrates professional development practices

πŸ”„ Deployment

  • Production: Vercel hosting
  • Database: Supabase managed PostgreSQL
  • CDN: Vercel Edge Network
  • Monitoring: Sentry + Vercel Analytics
  • Backups: Automated via Supabase PITR

πŸ‘€ Author

Hussam Shahin
LinkedIn | GitHub


Status: Active production deployment | Built under commercial contract for Crowned Gladiator Enterprises LLC | Portfolio demonstration showcasing enterprise-grade service management system development.

About

Production CRM for carpet cleaning service | $32K contract | Next.js 15, React 19, TypeScript, Supabase, Twilio SMS, Real-time scheduling, Invoicing

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •