Master prompt builds a full pay-to-rank app: schema, Stripe, RLS included
aliscodes · x · 2026-08-23
The author shares a Master Prompt for Cursor / Claude Code / Antigravity that builds a real-time pay-to-rank leaderboard: Next.js 14 App Router + TypeScript, Supabase Postgres, Stripe Checkout, no auth. It includes the full schema — an entries table (url, unique urlkey, amountcents, firstpaidat), a payments table (unique stripeeventid for idempotency), a partial index on amountcents desc, and RLS enabled. URLs are normalized (lowercase, strip www, drop query/hash) to collapse duplicates; payments flow through an applypayment Postgres function.
More from coding & agent
- CLI Adds Subscription Pricing Derivation and Guards — rudrank · 2026-08-23
- CLI Supports Agreement Acceptance via Web Simulation — rudrank · 2026-08-23
- CLI Adds Agreement Status and Acceptance Commands — rudrank · 2026-08-23
- CLI Supports Name Filtering for Tester Export and GC Confirmation — rudrank · 2026-08-23
- CLI Tester Removal Supports Waiting and Tombstones — rudrank · 2026-08-23
- CLI Adds Wait Flag for TestFlight Tester Removal — rudrank · 2026-08-23