The short version
Credits move between wallets in one locked transaction, with a ledger entry on both sides.
- Tables
- 8
- API routes
- 10
- Starting credits
- 5
What it is
ContribuX is a skill exchange for students. Someone good at something posts it as a listing with an hourly rate in credits and a session length, and classmates book time with them. No money changes hands: you earn credits by teaching and spend them learning.
What we built
ContribuX was a two-person project with Vidya Singh, built as coursework between March and May 2026.
- Listings: a skill, a category, an hourly credit rate and a session length.
- Explore: browse what other students are offering and request a session.
- Bookings: teachers accept requests and mark sessions complete; both sides see where each one stands.
- Wallet: everyone starts with five credits, with a ledger entry for every session on both sides.
- Accounts: sign up and sign in with Better Auth, and a profile with your department and bio.
How it works
Next.js 16 and React 19 over MySQL 8, with plain SQL through a connection pool rather than an ORM. Better Auth keeps its users and sessions in the same database.
The part that has to be right is the transfer. When a teacher completes a session, one transaction locks the booking, checks that the right person is completing it and that the learner can afford it, then locks both wallets in a fixed order so two transfers in opposite directions can’t deadlock. It moves the credits, writes a debit and a credit to the ledger, and marks the booking complete. Either all of that happens or none of it does.
Where it stands
Finished as coursework, with the design studies, report and SQL exercises kept alongside the code. The wallet offers free demo top-ups; no payment processor is connected. The code is on GitHub.
Next project →
MIUISR