← All work

Mobile app · App Store & Google Play · Korea

SeniorFriends

A community app for Korean seniors and Korean senior models (verified adults, 19+). Members share stories about health, hobbies and daily life, follow senior models, see their profiles, photos and videos, and watch their live broadcasts.

A friend and I built it as a team of two for a client, a Korean business owner in Apgujeong, Gangnam. My teammate built the React Native app; I built the backend that every screen talks to: 49 tables with row-level security on every one, 118 SQL functions, 32 triggers and 8 edge functions. The project is now growing into a startup.

Role
Backend developer
Team
Team of 2
Platform
iOS & Android
Links
Mobile AppsWeb Development
  • Supabase
  • PostgreSQL
  • Edge Functions
  • Agora
  • RevenueCat
  • NHN KCP
  • React Native
  • Expo
HomeModelsCertified models
112row-level security policies on 49 tables
118SQL functions and 32 triggers
8edge functions for identity, live, payments and push
The story behind itA business owner in Apgujeong, Gangnam wanted an app for Korean senior models and their fans. A friend and I built it as a team of two.Read the story

Features

Backend features

  • Verified sign-up through a carrier identity check (NHN KCP), adults 19+ only
  • Members, certified models, corporate members and admins, with roles the app can't change
  • Community boards with photo and video posts, comments, likes and 1:1 chat
  • Model photos and videos go public only after an admin approves them
  • Live broadcasts with Agora: live chat, hearts and a viewer count
  • Membership at ₩9,900 a month or ₩99,000 a year, checked on the server for every paid action
  • Push notifications with an in-app inbox, and an admin panel for approvals, reports, banners, events and payouts
  • Association communities (e.g. IBHCA, WBCF) and partner businesses

Safety rules

  • Report and block on every post, comment, chat and stream; the database hides blocked users' content
  • Phone numbers (even split by spaces or dashes), links, emails and KakaoTalk, Telegram or WeChat IDs are blocked in chats and comments
  • A banned-word list refuses or flags posts
  • Members can't take a model's nickname; official models and staff carry a badge
  • Reports are reviewed within 24 hours

Architecture

  1. 01AppReact Native · Expo SDK 53 · iOS & Android
  2. 02SupabasePostgres · Auth · Storage · Realtime · RLS on every table
  3. 03Edge Functions8 Deno functions for keys and webhooks
  4. 04ServicesNHN KCP identity · Agora live · RevenueCat · Expo Push

Why this stack

Supabase + row-level security

Two people, dozens of screens: access rules had to live in one place. 112 policies on 49 tables decide what each user can read and write, so a bug in the app can't open someone else's data.

Rules as database triggers

Chat checks (membership, blocks, suspension, rate limits) run in triggers before a message is saved. The app can't skip them, and every client gets the same rules.

Edge Functions for anything secret

Identity-check keys, Agora token signing and the payment webhook run in 8 server-side Deno functions. The phone never holds a key it could leak.

Deep dive

An identity check that never trusts the phone

The app is for adults only, so every member passes a real carrier identity check. It had to prove the member is 19+, work inside the phone's browser, and keep as little personal data as possible.

Identity check, start to finish

  1. 01Birthdatetyped in the app
  2. 02Startrate-limited, key kept on the server
  3. 03Carrier checkon NHN KCP's page
  4. 04Callbackresult fetched and decrypted server-to-server
  5. 05Completesingle use: sign up or sign in

Paid access

  1. 01Store purchase
  2. 02RevenueCat
  3. 03Webhookshared secret, constant-time check
  4. 04Ledgerrenewals, refunds, yearly plans
  5. 05Server checkon every paid action

Guard rails

  • The browser never learns the result: the callback sends the same redirect whether the check passed or failed.
  • Single use: a session goes pending → verified → consumed in one atomic update, so a replayed request is refused.
  • Age is checked on the server: the carrier's birthdate must match what the member typed, and anyone under 19 is refused.
  • Minimal data: the unique person ID is stored only as an HMAC; name, phone number and gender are thrown away.

Screens

01 / 02

Home
Home
Models
Models
Certified models
Certified models

Troubleshooting

01

Signing in on one phone logged out the other

Problem
A member who signed in on a second phone was suddenly logged out on the first one.
Cause
Sign-in reset the account's password behind the scenes, and a password change ends every open session.
Fix
Sign in with a one-time link and code (generateLink + verifyOtp) instead. It opens a new session and leaves the others alone.
Result
Members stay signed in on every device they use.
02

Crash when leaving Home

Problem
Navigating from Home to another realtime screen crashed the app.
Cause
supabase.channel() returns the same instance per topic, so a second subscribe on an already-joined channel threw.
Fix
A shared realtime layer with reference counting: one channel per topic, reused by every screen and removed when the last subscriber unmounts.
Result
No realtime crashes; screens mount and unmount in any order.

What worked and what I learned

Choices that paid off

  • Payments are a ledger: renewals, refunds and yearly plans are all recorded, and model payouts follow each member's monthly pick.
  • A push outbox: each notice is claimed once, so a push can't be sent twice or faked.
  • Private by default: other users can read only listed profile columns, and photo links must point to the owner's own storage folder.
  • Admins can switch on a free mode for everyone without a new app release.

What I learned

  • Rules the app must not skip belong in the database, not in the screens.
  • Never let the client decide: age, payments and access are all checked on the server.
  • When something odd happens, read how the library works inside: both hardest bugs came from how Supabase reuses channels and sessions.
Next projectCampuslyLearning platform for a private K-12 school, with an AI tutor. Built alone, 440 tests.