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 05Case studyConstruction CRM · Data Migration · MEAN/MERN
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.
Overview
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.
Project challenges
The problems standing between the client and a product built for growth.
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 05Invoices, payments, worksheets, and approvals were handled manually or across spreadsheets, causing delays in billing and inaccurate financial records.
Challenge 02 of 05Field 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 05The 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 05Worksheets 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 05Our solution

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.
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.
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.
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.
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
5 pillars that guided every design and development decision.
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.
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.
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.
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.
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
tools into one CRM with full pipeline visibility across 6 stages.
payments, and balances stay accurate through HMAC-verified webhooks, atomic retry queues, and self-healing reconciliation every 6 hours
webhook handling rate-limited, deduplicated, coalesced, and echo-protected no manual data entry, no duplicates, no sync loops.
@mentions, emoji reactions, and instant Socket.io notifications eliminating phone tag and email chains.
orders placed, priced, and reports received directly within the job without switching tools.
Inside the build
Hover to pause. Click any screen to view it larger.





What we delivered
Ongoing success
Related case studies
FAQ
Planning something similar? Here are quick answers on how we work, timelines and support.
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.
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.
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.
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.
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.
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.
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.
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.
Yes. We can revamp your current store’s design and user experience while keeping your products, customers and SEO intact.
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.
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.
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.
Every project follows seven steps: Discuss, Analyze, Structure, Design, Development, Testing and Launch. You’ll have clear milestones and regular updates at every stage.
Every project is quoted based on its specific requirements. After a free consultation, we send you a clear, itemised proposal with no hidden costs.
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.
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.
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
Tell us about your project and we'll show you how we'd approach it.
Get a quote
Let's connect and explore how we can make your next project a success.
It only takes a minute.
Your details are safe with us. No spam.
Free download
Access ready-to-use templates to plan, scope, and execute your AI initiative with clarity and confidence.
Enter your details to download the template.
Your details are safe with us. No spam.
Free download
Access practical frameworks and tools to understand, evaluate, and implement blockchain solutions with confidence.
Enter your details to download the playbook.
Your details are safe with us. No spam.
Before you go
See why brands trust Bytecode to build, scale and look after their digital products.
Share your requirements and our experts will map out the right plan for your business.
Your details are safe with us. No spam.
Trusted by brands like
Book a meeting
Book a meeting with one of our experts to discuss your requirements and solutions tailored to your needs.
Ready to help you code your next success!Pick a slot and we'll take it from there.
Choose a slot and get your invite straight away.
See available times and book instantly.
You have unsaved changes. Do you really want to close?