Skip to content
← All work

Apple Developer Academy

RiSTOCK

Small shops kept running out of stock because nobody saw it coming. RiSTOCK forecasts demand and pings the owner to restock before the shelf is empty.

  • Python
  • MySQL
  • SwiftUI
  • API Design
RiSTOCK screens
fewer potential stockouts
70%fewer potential stockouts
SKUs on restock alerts
516SKUs on restock alerts
faster cross-team integration
50%faster cross-team integration
API latency
< 200 msAPI latency

Why I built it

Business owners lose sales when a product runs out before anyone notices. RiSTOCK was built so they can see it coming and restock in time.

What it does

  • Forecasts demand per product from sales history.
  • Warns the owner when a product is running low, before it runs out.
  • Lets staff pair a phone with the desktop app by scanning a QR code, then update stock from the phone.

How it works

The backend follows an onion (clean) architecture in Python on MySQL, so the forecasting logic doesn't depend on the web framework or the database. Flask exposes it over HTTP, and Redis streams push restock notifications out to the apps. Jenkins and Docker run the CI/CD pipeline that deploys it.

Why this stack

As tech lead I set up shared API contracts so the app and backend developers could build against the same interface in parallel. That is what cut cross-team integration time by half.

The hard part

Getting a team of five building separate apps to agree on one API contract, and keeping it stable while the product changed.

Results

Restock alerts covered 516 SKUs and cut potential stockouts by 70%. The backend held API latency under 200 ms.

What I'd do differently

Notes coming soon.