
Case Study
A three-sided circular economy marketplace for textile waste in the Nigerian fashion industry
Overview
Tayora Sustain is a circular economy marketplace connecting textile waste suppliers, material requesters, and platform admins in a three-sided flow. Suppliers list waste materials, requesters match and claim them, and admins oversee the entire lifecycle. I built the complete frontend solo while a separate developer handled the Python/FastAPI backend.
The Nigerian fashion industry generates significant textile waste with no structured system for redistribution or reuse. Offcuts, deadstock, and production waste end up discarded when small designers, craftspeople, and manufacturers could use them. Tayora Sustain was conceived to bridge that gap by creating a platform where waste becomes a resource. The challenge on the frontend was building three distinct user experiences with different roles, permissions, and flows in a very short timeline.
The product direction came from the client and backend developer who had done prior research with fabric suppliers and small-scale fashion designers in Lagos.
Key insight from that research: suppliers needed a simple listing interface because most were not highly technical. Requesters needed to be able to browse and filter by material type and quantity. Admins needed visibility into the full flow without needing to intervene in every transaction.
I mapped out the three user journeys before writing any code: supplier (list, manage, track status), requester (browse, claim, track), admin (overview, approve, manage users). This became the architecture blueprint.
The most important frontend constraint identified upfront: role-based access had to be airtight. A requester must never see admin controls. A supplier must only see their own listings.
I chose a single Next.js 15 app with role-based routing rather than three separate apps. This kept the codebase unified and deployment simple. TanStack Query handled all server state because the material flow involved frequent status updates that needed to stay in sync. Zustand was scoped strictly to UI state only: modal open/close, active tab, sidebar collapse. No business logic touched Zustand. Cloudinary was the obvious choice for image uploads given it handles transformation and CDN delivery without backend involvement. Tailwind CSS v4 gave me the speed I needed to build three portal experiences inside three weeks.
Built three separate portal views (supplier, requester, admin) under a single authentication system with role-based redirects on login.
Supplier portal: listing creation form with Cloudinary image upload, client-side preview, and optimistic UI updates so suppliers see their listing appear immediately without waiting for a server response.
Requester portal: browsable material feed with filter controls by type and availability, a claim flow with status tracking, and a dashboard showing claimed materials and their current stage.
Admin portal: full overview of all listings, all users, and all transactions with controls to approve, flag, or remove content.
Modelled the material lifecycle as a discrete status machine: submitted, collected, sorted, matched, fulfilled. Each status transition was reflected clearly in both the supplier and requester views so both parties always knew where a material was in the flow.
Protected route handling via a custom hook that checked the Zustand auth state and redirected unauthenticated or wrong-role users before rendering.
Tested with a small closed beta group of under 10 users including the client and a few real textile suppliers and designers. The main issues surfaced were: the listing form was too long on mobile (fixed by splitting into steps), and the status labels were not clear to non-technical users (renamed and added plain-language descriptions). I did not have the time or resources for formal usability testing, but the iterative feedback loop with the beta group was enough to catch the most critical friction points.
Used sessionStorage for token persistence after a cross-origin auth issue with the FastAPI backend's httpOnly cookies not surviving across the Next.js frontend domain. A proper solution would be server-side cookie handling via a Next.js API route proxy, which is scoped for a later phase.
Optimistic UI updates on the supplier portal meant that in rare cases where the API call failed, the UI showed a listing that did not actually persist. This was mitigated with error boundaries and rollback logic but not fully eliminated.
Did not build a notification system in this phase. Users have to manually refresh or revisit their dashboard to see status changes. A real-time update system via WebSockets or polling is planned.
The three-portal architecture inside one codebase meant the bundle size was larger than a single-role app. This was acceptable for the beta but will need code-splitting attention before a public launch.
Tayora Sustain is live in closed beta with active testers. The core flow, from listing a material to a requester claiming it, works end to end. The client has a functioning product to show potential partners and investors. For me personally, this project compressed more real engineering decisions into three weeks than most side projects manage in months: cross-origin auth debugging, optimistic updates, role-based architecture, and multi-portal UX all in a single codebase.