尚未偵測到更新。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).