Skip to content

luther-rotmg/served

Repository files navigation

served.

An Internet Food Service Intermediary (IFSI) connecting California MEHKO home cooks with eaters.

Stack: Next.js (App Router) · Prisma · PostgreSQL · Stripe Connect

Getting started

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 dev

MEHKO compliance, in one paragraph

California 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.

About

served. — an Internet Food Service Intermediary connecting California MEHKO home cooks with eaters.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors