Case studyConstruction CRM · Data Migration · MEAN/MERN

Riddle Brothers CRM.

 Riddle Brothers CRM is a custom-built construction CRM that manages leads, jobs, worksheets, payments, and real-time collaboration with deep QuickBooks, SalesRabbit, and EagleView integrations.

Industry

Construction CRMData MigrationFinancial IntegrationsReal-Time CollaborationRoofingSaaSWebhook Processing

Scope

Custom CRMEagleViewMongoDBNestJSNext.jsQuickBooksReal-TimeSalesRabbitSocket.io

Technology

MEAN/MERNReact / NextNode

Overview

About the project.

Riddle Brothers CRM continues to serve as the central operating system for the roofing business. The QuickBooks reconciliation cron runs every 6 hours ensuring financial data never drifts.

USA FlagUSA Construction CRM crm.riddlebrothersroofing.com ↗

Project challenges

What we had to solve.

The problems standing between the client and a product built for growth.

Disconnected Lead-to-Job Workflow

The roofing business had no unified system to track a customer from initial lead capture through job completion, invoicing, and closure resulting in lost leads and missed follow-ups.

Challenge 01 of 05

Manual Financial Tracking

Invoices, payments, worksheets, and approvals were handled manually or across spreadsheets, causing delays in billing and inaccurate financial records.

Challenge 02 of 05

No Real-Time Team Collaboration

Field crews, office staff, and managers had no shared platform for messaging, task updates, or live job status leading to miscommunication and duplicated work.

Challenge 03 of 05

Scattered Third-Party Tools

The team used SalesRabbit for lead generation, EagleView for aerial measurements, and QuickBooks for accounting but none of these tools talked to each other.

Challenge 04 of 05

Complex Approval Workflows

Worksheets with amendments, change orders, supplements, and discounts required a multi-step approval process that was difficult to manage on paper or email.

Challenge 05 of 05

Our solution

How we built it.

Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot
  1. 01

    End-to-End Lead & Job Pipeline

    Built a 6-stage pipeline (Lead, Prospect, Approved, Completed, Invoiced, Closed) with milestone tracking, date stamps, and role-based progression so every job is visible from first contact to final payment.

  2. 02

    Comprehensive Worksheet & Approval Engine

    Developed a multi-section worksheet system with amendments, change orders, discounts, supplements, insurance claims, and a full approval pipeline (Draft, Pending, Approved, Rejected, Voided) controlled by admin and manager roles.

  3. 03

    Real-Time Messaging & Notifications

    Implemented Socket.io WebSocket gateway with decorator-based event handling, per-lead chat rooms, per-user notification rooms, threaded conversations, @mentions with automatic notifications, and emoji reactions - keeping field crews and office staff in sync instantly.

  4. 04

    Modular NestJS Architecture with Separated Cron Worker

    Architected the backend as 23 self-contained NestJS modules following the Controller, Service, Model pattern. All scheduled tasks run in a completely separate process a dedicated cron worker bootstrapped via NestFactory.createApplicationContext() (no HTTP listener) managed by PM2 with independent memory limits (API: 1GB, Worker: 512MB), separate log files, and graceful shutdown hooks. This ensures cron jobs never compete with API request handling for resources.

  5. 05

    Deep QuickBooks Integration with Webhook Queue & Self-Healing Sync

    Connected QuickBooks via OAuth with a production-grade webhook pipeline: incoming webhooks are verified using HMAC-SHA256 signature validation against a verifier token, the controller returns 200 immediately and processes events asynchronously. Failed events are enqueued to a MongoDB-backed queue with atomic findOneAndUpdate() dequeuing (preventing duplicate processing across instances), status transitions (PENDING, PROCESSING, COMPLETED/FAILED), and configurable retry limits.

Our strategy

A plan built for growth.

5 pillars that guided every design and development decision.

Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot
STEP 01

Separated Process Architecture

Isolated all cron jobs (7 total across QuickBooks and SalesRabbit) into a dedicated worker process that loads only the modules it needs - ensuring API response times are never impacted by background processing.

STEP 02

Webhook-First Integration with Multiple Safety Nets

Designed all third-party integrations around webhooks with layered reliability: HMAC signature verification, immediate HTTP response with async processing, MongoDB-backed retry queues with atomic dequeuing, echo/loop prevention, rate limiting, coalescing, and reconciliation crons as the final safety net.

STEP 03

Real-Time Over Polling

Used Socket.io WebSockets instead of API polling for live messaging, notifications, appointment updates, and job status changes - delivering instant updates to all connected users.

STEP 04

Domain-Driven Module Isolation

Each of the 23 backend modules is fully self-contained (controller, service, schema, DTOs, crons) with explicit exports for cross-module dependencies - making the codebase maintainable as it grows.

STEP 05

Role-Based Access at Every Layer

Implemented 6 user roles (Admin, Manager, User, Office, Company Administrator, Location Administrator) with composable guards on every API endpoint and role-aware UI rendering on the frontend.

Results

The outcome.

+98%increase in sales

Unified Lead-to-Close Workflow replacing 4+ disconnected

tools into one CRM with full pipeline visibility across 6 stages.

Automated Financial Sync with QuickBooks invoices

payments, and balances stay accurate through HMAC-verified webhooks, atomic retry queues, and self-healing reconciliation every 6 hours

Zero-Touch Lead Capture from SalesRabbit with intelligent

webhook handling rate-limited, deduplicated, coalesced, and echo-protected no manual data entry, no duplicates, no sync loops.

Real-Time Team Communication with threaded messaging

@mentions, emoji reactions, and instant Socket.io notifications eliminating phone tag and email chains.

Instant Aerial Measurements via EagleView integration

orders placed, priced, and reports received directly within the job without switching tools.

Inside the build

Screens we shipped.

Hover to pause. Click any screen to view it larger.

Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot 1
Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot 2
Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot 3
Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot 4
Construction CRM, Data Migration, Financial Integrations, Real-Time Collaboration, Roofing, SaaS, Webhook Processing store implementation screenshot 5

What we delivered

Services & stack.

Services delivered

  • Custom CRM Application Development (NestJS 11 + Next.js 16 + MongoDB)
  • QuickBooks OAuth Integration with HMAC Webhook Verification, Retry Queue & Reconciliation Cron
  • SalesRabbit Webhook Integration with Rate Limiting, Echo Prevention & Coalescing
  • EagleView API Integration for Measurement Orders, Pricing & Webhook Callbacks
  • Microsoft Outlook Calendar OAuth Sync
  • Separated Cron Worker Architecture with PM2 Process Management (7 Automated Jobs)

Technology

MEAN/MERNReact / NextNode

Ongoing success

Ongoing success

Riddle Brothers CRM continues to serve as the central operating system for the roofing business. The QuickBooks reconciliation cron runs every 6 hours ensuring financial data never drifts. SalesRabbit webhooks keep new leads flowing in with zero manual intervention. The separated cron worker processes 7 automated jobs 24/7 without impacting API performance. The worksheet approval engine streamlines complex billing with amendments and change orders. As the business grows, the modular NestJS architecture, PM2 process management, and scalable file service are ready to handle increased volume, new integrations, and additional team members

Related case studies

Projects we've built and grown.

FAQ

Questions about
projects like this.

Planning something similar? Here are quick answers on how we work, timelines and support.

What does Bytecode Technologies do?

We’re a full-service technology company specialising in Shopify and ecommerce. We design, build and grow online stores, custom web and mobile apps, AI solutions and enterprise software for brands around the world.

Where are you located?

We have offices in Alpharetta, Georgia (USA) and Mohali, Punjab (India). With teams in two time zones, your project keeps moving around the clock - and we work with clients worldwide.

How do I start a project with you?

Book a free consultation or request a quote through our contact form. We’ll set up a call to understand your goals, then send you a proposal covering scope, timeline and cost.

Do you work with startups or only large businesses?

Both. We work with new brands launching their first store, growing businesses that need to scale, and enterprises that need complex custom systems. We shape our approach and team around your stage and budget.

Are you Shopify experts?

Yes - Shopify is our core specialism. We handle custom theme development, Shopify Plus, custom Shopify apps, Liquid development, Hydrogen headless builds, Shopify Markets and third-party integrations.

Can you migrate my store to Shopify from another platform?

Yes. We migrate stores from WooCommerce, Magento, BigCommerce and custom platforms. We move your products, customers and order history, and use a 301 redirect strategy so you keep your search rankings.

My store is slow. Can you fix it?

Yes - speed optimisation is one of our most requested services. We audit your theme and apps, remove what you don’t need, optimise images and code, and improve your Core Web Vitals so pages load faster and rank better.

Can you help increase my store’s conversion rate?

Yes. Our conversion rate optimisation (CRO) service looks at where shoppers drop off - product pages, cart and checkout - then redesigns and tests those moments. Our clients have seen up to a 76% increase in store sales.

Do you redesign existing Shopify stores?

Yes. We can revamp your current store’s design and user experience while keeping your products, customers and SEO intact.

What AI services do you offer?

We build custom AI software, AI agents and automated workflows, conversational AI experiences, and AI search optimisation so your brand shows up in tools like ChatGPT and Perplexity. We also offer AI cost monitoring to keep your API spend under control.

Can you build a custom web or mobile app?

Yes. We build custom web applications, iOS and Android apps, cross-platform apps with Flutter and React Native, and progressive web apps - from planning and design through development, testing and launch.

What technologies do you work with?

Our stack includes Shopify, React, Angular, Vue, Next.js, Node.js, PHP, Python, .NET, Flutter, AWS, Azure and Google Cloud, along with databases such as MySQL, PostgreSQL and MongoDB.

What is your process?

Every project follows seven steps: Discuss, Analyze, Structure, Design, Development, Testing and Launch. You’ll have clear milestones and regular updates at every stage.

How much does a project cost?

Every project is quoted based on its specific requirements. After a free consultation, we send you a clear, itemised proposal with no hidden costs.

How will we communicate during the project?

You’ll receive regular progress updates throughout the project and can review the work at each milestone before we move on to the next stage.

What is the Zero Defect Guarantee?

Every project goes through our rigorous testing process - manual and automated testing across devices and browsers - before launch. If a defect is found in work we’ve delivered, we fix it at no extra cost.

Do you offer support after launch?

Yes. We offer ongoing store maintenance and support covering updates, monitoring, backups, security checks and new features as your business grows.

Still have a question? Talk to an expert

Let's work together

Your project could be next.

Tell us about your project and we'll show you how we'd approach it.

You have unsaved changes. Do you really want to close?