← Projects

CAS-MARKET

In productionsince May 2026Freelance Developer: backend in three microservices, web and mobilecasmarketgn.com ↗

A B2B and B2C marketplace for Guinea: building materials, mining, vehicles. Orange Money and MTN payments held in escrow, and GPS-tracked delivery until the buyer confirms receipt.

CAS-MARKET: home page
CAS-MARKET: home page
47
registered users
in production, November 2026
  • Every amount is a whole number in Guinean francs.
  • People pay with Mobile Money, not cards.
  • People sign in by SMS: the phone is the main channel.
  • Trust between buyer and seller rests on escrow, released only on delivery.
Three FastAPI services behind nginx, routed by path; one shared PostgreSQL database through PgBouncer, Redis and Celery for background jobs, Cloudflare R2 for media.

A transactional outbox between order and delivery

A synchronous HTTP call to api_logistics silently lost the event when the service was down: a paid order with no delivery. The event is now written in the same transaction as the order, then replayed by Celery with backoff and a dead-letter queue.

commit e2bdd4c

The escrow cannot be reached from the Internet

The internal fund-release routes were protected by the application alone. nginx no longer exposes them, and they require an internal token.

commit 1bf07a7

Two buckets rather than one

R2 has no per-folder policy: a single bucket would have made sellers' identity documents (KYC) public.

commit a056813

The real client IP behind Cloudflare

Without it, rate limiting counted the whole country as a handful of Cloudflare addresses and blocked everyone at once.

commit a056813

Measure before optimising

The Celery worker leaked 99 out of 100 PostgreSQL connections, and CI took 56 minutes. Both were diagnosed and fixed: CI now runs in 8 minutes.

commits 7e7e7bf, fc290e9
CAS-MARKET back office: order list
CAS-MARKET back office: order list
CAS-MARKET back office: finances on mobile
CAS-MARKET back office: finances on mobile
673
commits, June → October 2026
git log
374
HTTP routes across three services
FastAPI decorators
723
backend tests, blocking in CI
test_ functions
81
Alembic migrations
versions/
56 → 8
minutes of CI
commit fc290e9

Private repository: the commits cited can be shown in an interview.

  • No load testing yet: real capacity is unknown.
  • Neither the back office nor the mobile app has tests.
  • The mobile app is ready for Google Play but not published yet.
FastAPI · Python 3.11PostgreSQL 16 + PgBouncerRedis · CeleryNext.js 16 · React 19Expo SDK 57nginx · Cloudflare R2