Peter ItekaIteka Digital
InternalEmployment systems

Curo CRM

A CRM for a waste and transport business, built to replace the legacy Vtiger install the team had outgrown.

Role
Full-stack development
Context
Recycling Management Ltd
Stack
Next.js, React, TypeScript, MySQL, TanStack Table
Status
Internal

The problem

The business ran on a legacy Vtiger CRM whose data model and screens no longer matched how the team worked. Customer records, quotes, documents and correspondence needed to move into an application the team could extend, without losing the history or the legacy account identifiers.

My contribution

  • Built the application in Next.js 16 with TypeScript, MySQL and Tailwind CSS.
  • Migrated customers, contacts, quotes, products, services, users and assignment groups out of Vtiger, keeping the legacy account numbers.
  • Implemented bcrypt password hashes, HS256 JWT sessions in an HttpOnly cookie, token versioning and a five-attempt lockout.
  • Built the customer table with columns defined as data: MySQL-side filtering, sorting and paging driven by the URL, and inline editing re-validated on the server.
  • Added soft-delete archiving and an administrator-only permanent delete that cascades and keeps a log row.
  • Built the record tabs: details, contacts, quotes, jobs, updates, comments, documents and activity.
  • Implemented @-mentions stored per target, written with the comment and its audit row in one transaction.
  • Built the quote builder, printable quotes, the document library, mail sync and reports.
  • Built the bridge that provisions a transport customer and raises job requests in the transport application.

What the system does

  • Customer, contact and quote management
  • Server-driven customer and contact tables with shareable filter URLs
  • Inline editing with a per-field audit trail
  • Quote builder, printable quotes and a deletion queue
  • Document library with upload, preview and download
  • Mail sync and a communication timeline with @-mentions
  • Reports and an operations dashboard
  • Administrator-only archive and permanent delete
  • Transport bridge for customers and job requests

Technical approach

  • Next.js 16 App Router with Server Actions and route handlers
  • MySQL with a typed query layer for sorting and filtering
  • TanStack Table v9 driven by a column registry
  • JWT sessions (jose) verified against the database on every request
  • Transactional writes that keep records and audit rows consistent
  • Vtiger migration and backfill scripts
  • Deployed as a Windows service with a mail listener and scheduled sync

Outcome

The team works in Curo rather than Vtiger. The customer table and record pages cover day-to-day account management, quotes and documents sit with the customer they belong to, and a customer marked for transport can be provisioned in the transport system from the same screen.

What I learned

Replacing a CRM is mostly a data-modelling exercise. Keeping legacy identifiers, writing every change to an audit trail and putting table state in the URL meant the team could trust the new system on the first day instead of keeping Vtiger open in a second tab.

All projects
Employer system

React / React Native / MySQL

Vehicle inspection system

InternalEmployment systems

Vehicle inspection system

A web dashboard and mobile app for recording vehicle inspections, defects and supporting evidence.

  • React
  • React Native
  • MySQL
Read case study
Employer system

PHP / MySQL

Customer and file management portal

InternalEmployment systems

Customer and file management portal

An internal portal for managing bookings, customer accounts, company records and shared files.

  • PHP
  • MySQL
Read case study

Next step

Need something like this built properly?

Tell me about the problem you are trying to solve. I will tell you honestly whether I can help, what it would involve and what it would cost.