03Commerce · Platform
Selliberation
Subscription commerce with a six-level referral tree
A Nigerian affiliate commerce platform: members pay a monthly subscription, take online courses, and earn commissions on referrals up to six levels deep. Built as two applications — the member product and a standalone admin console.
The admin console is a separate application: github.com/Emynex4real/selliberation-admin
Multi-level referral commerce lives or dies on one thing: whether a member believes the number on their earnings screen. Six levels of commission is not a hard idea, but it is easy to implement so that nobody — including the operator — can explain where a particular naira came from.
- 01Member product: courses, referral tree, earnings, withdrawals and settings behind a subscription.
- 02Admin console: users, courses, commissions, withdrawals, announcements and analytics, shipped as its own application.
- 03A written specification of the commission rules and the API that will enforce them, ahead of building either.
- D-01
The commission rules were specified before they were coded
The payout logic is the product, so it is written down first — models, routes and the multi-level calculation — as a document in the repository rather than a comment discovered later. It is the one part of this system where being wrong costs real money and real trust.
Trade-offWriting the specification took time that could have gone into screens, and a document can drift from the code that follows it. I would rather fix a rule in a paragraph than in a payouts table that has already run.
- D-02
The admin console is a separate application
Member and admin ship as two apps that share conventions and a design language but no code. An admin session is never one routing mistake away from a member's account, and the two can be deployed and locked down independently.
Trade-offThe design system is maintained in two places and can drift, which is a real cost I pay on every visual change. Preferable to the blast radius of one bundle serving both roles.
- D-03
Mock data behind a real data shape
The interface runs on a typed mock layer that matches the API contract exactly, so every screen was designed against realistic commission trees and withdrawal states rather than three tidy rows. Swapping to the live API is a change of module, not a change of components.
Trade-offScreens that work perfectly against mock data have never met a slow network, a partial failure or a race. Those are real gaps and they are listed below, not hidden.
- The backend is specified, not built. Both applications currently run on a typed mock layer and browser-stored auth — this is a working front end and a written API contract, not a system taking payments.
- Nothing here has handled a real withdrawal. Until the commission engine runs server-side against a ledger, the earnings screens are a design, not a guarantee.