Scene 01Case file

FarmEase

A farm-to-buyer produce marketplace with multi-vendor carts, item-level order tracking, Paystack payments, and buyer and farmer messaging, backed by a 116-test automated API suite.

Year

2026

Stack

Next.js 16 · Elysia (Bun) · Eden Treaty

Status

Shipped

Links

n/a
Music: Happy Beats (Business Moves Vol. 11) by Sascha Ende (ende.app), CC BY 4.0

Overview

FarmEase connects farmers directly with buyers.

A buyer can fill one cart from several farms; each line item then moves through its own order lifecycle, so one farm shipping late doesn't hold up the rest of the order.

Three roles (Buyer, Farmer, Admin) sit on dual-token JWT auth (15-minute access tokens, 7-day refresh tokens) with role-based access on every route. Payments run through Paystack, product images through UploadThing, and farmers get a sales and inventory dashboard alongside order messaging with their buyers.

The API is Elysia on Bun, consumed from Next.js 16 through Eden Treaty, with Prisma on Postgres. An automated suite of 116 API tests covers auth, ownership rules, products, orders, and messaging.

What I built

  1. 01Multi-vendor cart with item-level order tracking
  2. 02Dual-token JWT auth (15-min access / 7-day refresh)
  3. 03Role-based access: Buyer, Farmer, Admin
  4. 04Paystack payment processing
  5. 05Buyer–farmer order messaging
  6. 06Sales and inventory dashboard
  7. 07116 automated API tests

Stack

Next.js 16 · Elysia (Bun) · Eden Treaty · Prisma · PostgreSQL · Paystack · UploadThing · TanStack Query · shadcn/ui · Bun test

Frames

Next casePrivate Chat

More work