Building a Secure Learning App with 1,300+ Unit TestsBuilding a Secure Learning App with 1,300+ Unit Tests
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I wrote 1,300+ unit tests for a learning app nobody asked me to build.
Loo is my own project, live at playloo.app. Five-minute lessons, streaks and weekly leagues, on Next.js 16 and Supabase.
Answer keys never reach the browser in graded steps. Every answer is checked on the server, and XP, hearts and leagues change in one server transaction.
Every progress table has row level security, so each learner reads only their own rows.
I build it the way I want a client's app built. It is also where I try things before I recommend them to anyone.
If the browser can change it, someone will.
Post image
Jawad's avatar
Server-side checks is the right call. With streaks and leagues already built, a referral reward could grow Loo fast.
Yaroslav's avatar
Good idea, thanks. It would fit the existing coin economy, and the reward can go through the same server-side transaction, so it can't be gamed.
Israel's avatar
1,300+ tests for a side project is serious dedication. Respect!
Yaroslav's avatar
Thanks, Israel. Tests are what let me change the game rules without being scared of breaking someone's streak.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started