OpenAthlete
AGPLv3 endurance training platform: EU-oriented hosting, transparent CTL/ATL/TSB logic in code, self-hosting, and full export. Built in Grenoble.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A weekly NFL confidence pool: an admin picks ~5 games a week, everyone ranks
their confidence in each pick (1-5, each value used once), and points equal
the confidence value for every correct pick. Season standings drop each
player's 3 lowest weeks.
Replaces the old Google Form + manual spreadsheet workflow — picks, grading,
and standings all happen automatically.檢視完整 README ↗A weekly NFL confidence pool: an admin picks ~5 games a week, everyone ranks their confidence in each pick (1-5, each value used once), and points equal the confidence value for every correct pick. Season standings drop each player's 3 lowest weeks.
Replaces the old Google Form + manual spreadsheet workflow — picks, grading, and standings all happen automatically.
See DEPLOY.md for how to put this online.
npm install
cp .env.example .env # already done if you're reading this in the repo
npx prisma migrate dev # creates prisma/dev.db
npm run dev
Open http://localhost:3000. Sign-in emails aren't actually sent in dev —
the magic link is printed to the terminal running npm run dev; copy it
into your browser.
The first person to sign in whose email is listed in ADMIN_EMAILS (in
.env) is automatically made an admin.
prisma/schema.prisma — data model (Users, Players, Seasons, Weeks,
Games, Picks, LockOverrides).src/lib/scoring.ts — all the grading/standings math, pure functions,
no I/O. This is the file to read to understand the rules precisely.src/lib/locking.ts — pick-lock and admin-exception logic.src/lib/espn.ts / src/lib/sync-scores.ts — pulls live scores and
writes them onto Game rows. Runs opportunistically whenever someone
loads Results/Standings, plus a Vercel Cron backstop
(vercel.json → /api/cron/sync-scores).src/lib/timezone.ts — Eastern-time conversion for kickoff entry/display.
Deliberately avoids the common "round-trip through toLocaleString" trick,
which breaks depending on the server process's own timezone.src/app/picks, src/app/results, src/app/standings — participant
pages.src/app/admin — admin dashboard, week/game editor, participant list.Deferred by design (regular season only for now). When you get there:
Game.status/scores already work the same way; you'd mainly need a
seasontype=3 variant of the ESPN fetch in sync-scores.ts and a decision
on how confidence values work for a shrinking bracket.