Projects

ClickNBack: A production-grade cashback platform backend

ClickNBack banner

Status: Deployed & actively maintained

ClickNBack is a cashback system deployed at https://clicknback.com/docs. New features ship almost daily through an automated CI/CD pipeline. It’s a living system where I make architectural decisions, deploy them, observe what works in production, and iterate the next day.

How it works: Users register, earn cashback on purchases at partner merchants, and withdraw funds. Behind the scenes: purchase events are ingested, verified asynchronously through background jobs (simulating bank reconciliation), published to an internal message broker for decoupled processing, and trigger cashback calculations. Wallets track three distinct balances—pending, available, and paid—with financial precision and row-level locking for correctness. An audit trail logs every critical operation for compliance and traceability.

The system runs on FastAPI with a modular monolith structure designed for future extraction into services. Tests span unit (mocked), API-level (HTTP), and integration layers with full coverage reporting. Every commit goes through linting, security gates, and type checking before touching production.

Explore the code and try it: github.com/jerosanchez/clicknback