尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Gather friends for potlucks and parties, then let everyone share recipes and photos.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A small community potluck site: gatherings and their themes, the dishes guests bring, and a shared recipe box. Styled as a vintage neighborhood cookbook / hand-printed potluck poster.
Stack: React 19 + Next.js (App Router) · Tailwind v4 + shadcn (Base UI) · Phosphor Icons · Supabase (Postgres, Auth, Storage)
pnpm install
cp .env.example .env.local # publishable key only
pnpm dev
NEXT_PUBLIC_SUPABASE_URL / NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY are required. The VITE_SUPABASE_* names from the brief are accepted too (see next.config.mjs).
Browser ──fetch──▶ Next.js /api/* route handlers ──▶ Supabase (PostgREST + Storage)
│ ▲ forwards the guest's bearer token, so RLS sees auth.uid()
└─ supabase-js: guest session only (signInAnonymously on startup)
| Route | |
|---|---|
GET /api/events, GET /api/events/[slug] | events → dishes → recipes |
GET /api/recipes?search&category&tag&contributor&event&limit | search uses search_vector |
GET /api/recipes/facets, GET /api/recipes/[slug] | |
POST /api/recipes, PATCH/DELETE /api/recipes/[id] | auth required, owner via RLS |
GET/POST /api/dishes, PATCH/DELETE /api/dishes/[id] | |
POST /api/events, PATCH/DELETE /api/events/[id] | hosts only (see below), own events via RLS |
GET/POST /api/host/me | host status (none/pending/approved); POST requests access |
POST /api/uploads | image → forklore-media/<user-id>/<file>; returns the object path |
owner_user_id and slugs are never sent; the database fills them. Only the publishable key is used.
To protect guest sign-in from bots, create a Cloudflare Turnstile widget, put its secret key in Supabase (Auth → Attack Protection → Enable Captcha, provider Turnstile) and set NEXT_PUBLIC_TURNSTILE_SITE_KEY to the site key. It stays invisible unless Cloudflare wants a challenge. If Supabase captcha is on but the site key is missing, anonymous sign-in will fail.
supabase/seed.sql adds a few example events (admin-run, bypasses RLS).supabase/hosts.sql once. Anyone can go to /host, sign in with an emailed link (Auth → Email must be enabled; add your site URL + /host to Auth → URL Configuration redirect URLs) and request host access. Requests land as pending; approve with update public.hosts set status = 'approved' where email = '...'; (list pending ones with select * from public.hosts where status = 'pending'). Approved hosts can create, edit and delete their own gatherings, including a cover photo. Guests stay anonymous and can't touch events.Layout: src/app (routes + API), src/server (Supabase helpers), src/views (page UIs), src/components/cookbook (poster, cards, ornaments), src/components/ui (shadcn).