尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A public, crowdsourced database of local community theater.
Built with Next.js (App Router, TypeScript), Tailwind CSS and Supabase, hosted on Vercel.
npm install
.env.local has both Supabase values filled in (see below).npm run dev
.env.local)This file stays on your computer and is never uploaded to GitHub.
| Setting | Where to find it in the Supabase dashboard |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Project Settings > Data API > Project URL |
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY | Project Settings > API Keys > Publishable key (sb_publishable_...) |
The same two values are also set in Vercel (Project > Settings > Environment Variables) for the live site.
| Address | What it is |
|---|---|
/ | Home: show count and recently added productions |
/signup, /signin | Accounts (email and password, 18+ required) |
/add | "Add a production" form (members only) |
/moderate | Pending submissions with Approve and Reject (moderators and admins) |
/production/[slug] | A production: cast, crew and performances |
/person/[slug] | A person: stage credits and frequent collaborators |
The whole "Add a production" form is saved as one pending row in edit_proposals (entity_table = 'production_submission'). When a moderator approves it, the database function approve_submission() creates the show, company, location, production, performances, people and credits in one go. If anything is wrong, nothing is created. The contributor earns points automatically.
The database blueprint lives in supabase/migrations/. Each file runs once, in order of the timestamp in its name. To apply new ones to the online database:
npx supabase db push
After changing the database, refresh the code's description of it:
npm run db:types