Dugout Value
Baseball research on pitching, hitting, and projections, plus tools for comparing players, contracts, and trade value.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Informal cricket scoring Next.js Supabase
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Small Next.js app: create a match, score on the secret write URL, share the public read-only URL (/m/{public_id}). After you mark the match complete, further edits require the scorer PIN again (stored as hash; unlock uses an HttpOnly cookie).
The Sparta club website (events, RSVPs, marketing, admin) lives in a separate project: C:\Roop\Code\hobby\sparta-club-portal.查看完整 README ↗Small Next.js app: create a match, score on the secret write URL, share the public read-only URL (/m/{public_id}). After you mark the match complete, further edits require the scorer PIN again (stored as hash; unlock uses an HttpOnly cookie).
The Sparta club website (events, RSVPs, marketing, admin) lives in a separate project: C:\Roop\Code\hobby\sparta-club-portal.
.env.local.NEXT_PUBLIC_SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY (server-only, never expose to the browser bundle in client components).MATCH_UNLOCK_SECRET to a long random string (e.g. openssl rand -hex 32).NEXT_PUBLIC_SITE_URL — used for nicer absolute links locally and in production (Vercel deploy URL).Project: cric-score · ref lojomuhczvxyouudassi (must match NEXT_PUBLIC_SUPABASE_URL).
Full setup steps (MCP, SQL Editor, verify): supabase/README.md
First-time migration (reusable, idempotent): run
supabase/migrations/001_cricket_scorer_initial.sql
in the Supabase SQL Editor, or via Supabase MCP apply_migration with name cricket_scorer_initial.
After the project is active and migration is applied:
npm run db:verify
Static design previews — open in a browser (no build step):
mockups/index.html — overview + side-by-side previewsmockups/live-scorer.html — scoring pad + hero scoremockups/create-match.html — setup formmockups/public-scorecard.html — read-only viewInspired by common live-score patterns (big score first, card layout, ball chips, thumb-friendly pad). Not wired to the app yet.
npm install
npm run dev
npm run build
Production (Vercel): https://cricket-scorer-azure.vercel.app
Project name: cricket-scorer · team: roop-yekollus-projects
| Variable | Notes |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
SUPABASE_SERVICE_ROLE_KEY | Server-only |
MATCH_UNLOCK_SECRET | PIN unlock signing |
NEXT_PUBLIC_SITE_URL | https://cricket-scorer-azure.vercel.app |
Optional: NEXT_PUBLIC_SUPABASE_ANON_KEY if you add client-side Supabase later.
Redeploy after env changes: npx vercel deploy --prod
Repo: yrk1436/cricket-scorer (public) · branch main
If the repo is not created yet, either:
repo scope or fine-grained Administration write).Then push from this folder:
git remote set-url origin https://github.com/yrk1436/cricket-scorer.git
git push -u origin main
npx vercel git connect
Or run .\scripts\publish-github.ps1 after gh auth login.
Vercel pairs well with Next.js. Remember the Supabase free tier may pause idle projects.