Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split Pay — MVP Scaffold

This is a Vite + React scaffold wired for Supabase Auth, basic group sharing, expenses, balances with a minimal cash-flow algorithm, settlements, and a QR payment request route.

Prerequisites

  • Node 18+
  • Supabase project with Email (magic link) enabled
  • Env vars set in a .env or via Netlify:
    • VITE_SUPABASE_URL
    • VITE_SUPABASE_ANON_KEY

Install & Run

npm install
npm run dev

Open http://localhost:5173.

Configure Supabase

  • Use SETUP_TASKS.md to provision the project and set redirect URLs.
  • In Supabase SQL editor, run the schema from the Appendix in SETUP_TASKS.md.

App Structure

  • Auth: email magic link (/AuthPage).
  • Groups: create/join, list (/groups).
  • Group dashboard: members, expenses, balances, settlements (/groups/:groupId/*).
  • QR/Payment request route: /pay/:token.

Tests

Algorithm tests with Vitest: npm test.

Notes

  • This scaffold expects the Supabase tables and RLS policies from SETUP_TASKS.md to be present.
  • QR flow uses short-lived tokens from payment_requests. In MVP, tokens require login and group access; one-time use can be added later.
  • Netlify secrets scanning: Frontend apps must ship public env vars (VITE_*). Supabase anon key and URL are safe to expose with RLS. We configure SECRETS_SCAN_OMIT_KEYS in netlify.toml so Netlify does not block the build.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages