Haithem Mustafa
Loading
Back to projects
Freelance · 2025

TAN

Car marketplace & short-video platform

Overview

The backend for a car-marketplace and short-video app. A Fastify and TypeScript service split into 16 modules (listings, reels, chat, payments, calls) over a 50-table PostgreSQL database with Prisma.

RoleBackend Developer
Year2025
Stack
  • Fastify
  • TypeScript
  • PostgreSQL
  • Prisma
  • Redis
  • BullMQ
  • WebSockets
  • S3
  • Bunny CDN
  • FFmpeg / HLS
The build
  1. 01Split the backend into 16 modules over a 50-table Postgres database with Prisma: listings, reels, chat, payments, calls, and more.
  2. 02Built a video pipeline where each upload is transcoded once into 360p / 720p / 1080p HLS. The heavy FFmpeg work runs in its own worker container so it never blocks the API, with retry-or-fail handling per error.
  3. 03Videos upload straight to S3 from the browser in parts, so the API never touches raw files. Finished HLS is pushed to S3 / MinIO and served through a Bunny CDN.
  4. 04Did real-time chat and notifications over WebSockets, with end-to-end encrypted DMs and push notifications via Firebase and Apple.
  5. 05Handled the social feed, likes, comments, follows and blocks, with feed ranking, trending hashtags, and view counts updated by background jobs on Redis / BullMQ.
  6. 06Wired up QiCard payments for promoted listings and verified badges, including renewals, refunds, and click / view stats.
  7. 07Added full-text search across users, listings, and reels, Arabic / English data throughout, HEIC image support, and the moderation tools (reports, appeals, logs).
Highlights
Back to projects