Skip to content
Projects

Movie Freak

Realtime group movie picker: live on Vercel, Render and Supabase, with batched swipe sync and scheduled catalog jobs

Movie Freak on a phone: a swipe card for Blade Runner 2049 with cast, director, trailer link and synopsis, beside the group's ranked top picks

A React/Vite client and a Node/Express + Socket.io backend. Per-session HMAC-signed tokens authenticate every request and raw votes never leave the server. The ~547K-movie catalog lives in Supabase Postgres, kept current by resumable jobs (bulk CSV load, weekly change-feed append, cast and trailer enrichment, and a popularity score from Wikipedia page views linked through Wikidata) run on GitHub Actions, and is separate from per-vote session rows so people swiping in the same room don't contend. The hosted API sits about a second from the database, so the client advances the deck locally and batches swipes: one request carries up to five votes and asks for the next five cards, recorded in a single transaction (measured on production: 19 swipes took 5 requests, next card in about 0.2 s). After a live user session the recommender was rebuilt around a per-member taste model over genre, keyword, cast, director, language and decade, with a fame prior, a language filter, richer cards (cast, director, runtime, trailer link) and a Keep Swiping flow that reopens a finished session without repeating the picks already shown. The same code also runs on Docker Compose (Postgres, Redis, two Node services, nginx ingress on a single port) and on a local Kind cluster with a CronJob for session cleanup and health probes. A self-built project on free plans: Render sleeps when idle, there are no user or traffic numbers, and the recommender's improvement is not proven by an offline simulation.

What it does

  • Realtime sessions over REST and Socket.io; per-session HMAC-signed tokens authenticate every request and raw votes never leave the server
  • Deployed end to end on free plans: React client on Vercel (CSP and security headers), Node API on Render, Postgres on Supabase through the IPv4 session pooler with verified TLS
  • Supabase public API locked down (row-level security on every table, no grants to the public roles); async errors answer 500 instead of crashing the process, per-member rate limits, member cap
  • Catalog kept current by resumable jobs on GitHub Actions (bulk load, weekly change feed, cast and trailer enrichment, Wikipedia page-view popularity via Wikidata) plus a daily purge of expired sessions
  • Batched swipe sync: the deck advances locally, one POST carries up to five swipes and requests the next five cards, recorded in one transaction; pending swipes flush on page hide
  • Recommender rebuilt after a live session: per-member taste model, fame prior, language filter, taste-guided pool refills, reason line on each card, covered by server unit tests
  • Keep Swiping reopens a finished session without repeating the top picks already shown, while still counting them toward taste
  • Also containerized on Docker Compose (nginx ingress as the only published port) and run on a local Kubernetes (Kind) cluster with a CronJob, probes and ingress-nginx

Pipeline

  1. 1React/Vite client (Vercel)
  2. 2Node API (REST + Socket.io, auth, taste ranking) on Render
  3. 3Supabase PostgreSQL (catalog + per-vote session rows)
  4. 4GitHub Actions (weekly sync, enrichment, popularity; daily purge)
  5. 5Docker Compose / Kind (local rehearsal)