Skip to main content
All work
04

SokoMtaani

A peer-to-peer marketplace that puts buyers and sellers in direct contact.

Role
Tech lead, full-stack
Year
2025
Context
Moringa School capstone
SokoMtaani interface

Problem

Neighbourhood trade in Kenya runs through informal groups and resellers, so buyers pay a margin to someone who never touches the product. The brief was to remove that layer without asking either side to trust a stranger blindly.

What I built

Next.js frontend against a Flask API, with JWT authentication and refresh tokens guarding every write. Listings, sellers and orders sit in a relational schema through SQLAlchemy, so a seller's inventory and a buyer's order history stay consistent. I led the split between the two codebases and owned the auth flow, the REST contract and the deployment pipeline.

Outcome

Shipped and running: the frontend on Vercel, the API on Render, with CORS and environment configuration handled per environment. The product decisions I would revisit are the SQLite choice, which is right for a pilot and wrong for concurrent sellers, and the lack of an escrow step.

Stack

  • Next.js
  • Flask
  • SQLAlchemy
  • SQLite
  • JWT
  • Vercel
  • Render