An Internet Food Service Intermediary (IFSI) connecting California MEHKO home cooks with eaters.
Stack: Next.js (App Router) · Prisma · PostgreSQL · Stripe Connect
npm install
cp .env.example .env # fill in DATABASE_URL and Stripe keys
npm run db:migrate # create tables
npm run db:enforce # install MEHKO cap triggers (REQUIRED — see below)
npm run db:seed # optional: one approved kitchen + menu item
npm run devCalifornia MEHKOs are legally capped at 30 meals/day and 90 meals/week, may
only fulfill by customer pickup or the cook's own delivery (no gig apps), and
cannot go live without verified county health permit + food protection manager
certification. These rules are enforced in the database (a PostgreSQL trigger +
ledger table), not just in application code, so they hold under concurrency. The
trigger lives in prisma/sql/enforce_mehko_caps.sql
and must be applied after every migration via npm run db:enforce.