irguing.dev
← Back to work

2021 – present

Compro Tus Juegos

The whole platform of a video game resale business: from quotes over WhatsApp and stock in spreadsheets to its own system in production.

My role
Sole developer and technical lead
Stack
Next.js · React · TypeScript · Prisma · PostgreSQL (Neon) · Vercel · PHP · Perfex CRM · MariaDB · eBay APIs · WhatsApp Cloud API
Visit the live site ↗Home page of the Compro Tus Juegos web app

The problem

Compro Tus Juegos buys and sells retro video games and consoles. The business ran by hand across WhatsApp, Excel and Google Sheets: quoting, stock, preparing lots and selling on eBay were manual, disconnected tasks.

What I built

Compro Tus Juegos platform architectureCustomers use the Next.js web app, which stores its data in PostgreSQL and syncs with the CRM through an event hub. The CRM integrates with eBay and WhatsApp.CustomersWeb appNext.js · VercelEvent hubCRMPerfex · MariaDBPostgreSQLNeoneBay APIsWhatsAppCloud API
Compro Tus Juegos platform architecture
  • Quote and sales web app (Next.js, React, TypeScript, Prisma, PostgreSQL on Neon, Vercel): a game and console quote tool, catalog, cart and checkout handing off to WhatsApp, and cohort-based conversion funnel analytics.
  • Custom CRM on Perfex (PHP, MySQL/MariaDB): inventory, purchase and sales orders, payments, PDF receipts and bulk operations, with 49 schema versions and their migrations.
  • eBay integration through its official APIs with OAuth 2.0: bulk listing and withdrawal from inventory, with sales and messages flowing back into the CRM.
  • Omnichannel inbox inside the CRM that replaced ManyChat: WhatsApp Cloud API, eBay messages and remarketing campaigns with opt-out.
  • Event hub between the web app and the CRM:
Event hub between the web app and the CRMEvery web app event is stored idempotently and goes through a retry queue until it reaches the CRM. The CRM sends each order status back to the web through a secure endpoint.Order status (secure endpoint)Web appEventIdempotentstorageQueueretries (cron)CRM
Event hub between the web app and the CRM

Every event is stored idempotently, retried from a cron-driven queue and backfilled for history, so customers see the real status of their order on the web.

How I work here

As the sole developer, I set the architecture, technical roadmap and priorities with the business partners, and run the infrastructure on Vercel, GitHub and Neon. I started as a contractor in 2021 and joined full time in September 2026.

Results

  • The whole operation runs on the CRM, with about 10 daily users.
  • Grading lots for shipment to Miami went from days to hours, and the spreadsheets are gone.
  • The eBay integration has been live since October 2026.
  • The web app has about 969 automated tests.