SKSalajdin Kaçamak
Back to work
Independent project2019

El Petrol Loyalty

Real-time fuel-refill loyalty program, from pump event to mobile rewards

Full-stack (freelance, solo)elpetrol-ks.com
PHPCodeIgniterMySQLNode.jsPusherReact Native

Overview

A loyalty platform for a fuel company, built on a CodeIgniter/MySQL backend, that turns every refill at the pump into loyalty points customers redeem for real benefits in a companion React Native app.

Refill events come from client-side hardware in real time via Pusher. Rather than relying on a message queue, incoming events are appended to a continuously growing log file, and a companion process tails that file in reverse from the last synced ID to pick up anything new, then posts each entry back to the server to persist and map it to a client account.

Highlights

  • Node.js + Pusher service listening for every refill event in real time, matching it to a client account and awarding points against configurable refill rules.
  • Reverse log-tailing ingestion pipeline — new entries are appended to a growing text file and re-read from the last processed ID, then posted to the CodeIgniter API to persist in MySQL.
  • React Native app (iOS + Android) for customers to view their refill history and redeem points for benefits — free car wash, free coffee, or a complimentary yearly service.
  • A CMS built into the admin panel that authors and manages the public-facing landing page content.

Standout detail

A reverse log-tailing pipeline instead of a message queue

Rather than standing up a message broker, refill events land in a plain, continuously growing log file. A companion process reads that file backward from the last synced ID, catching anything missed, and posts each new entry back to the server to persist and award points — a simple, resilient ingestion design built from first principles.

Interested in something similar?

I'm open to full-stack engineering roles and select freelance projects.