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 hockey stats website for the NHL, based on the soccer stats site Fotmob. It shows
scores, standings, game details, team and player pages, leaderboards, the playoff bracket and the draft, all from
publicly available NHL API data.
The app has two parts:
• HokMob.App/ – ASP.NET Core (.NET 7) backend. It serves the built Angular app and proxies the NHL APIs.
• HokMob.App/ClientApp/ – Angular 15 frontend.
• .NET 7 SDK (or a newer SDK, see note below)
• Node.js and npm
• A trusted ASP.NET Core dev certificate: dotnet dev-certs https --trust檢視完整 README ↗Website: hokmob.azurewebsites.net
A hockey stats website for the NHL, based on the soccer stats site Fotmob. It shows scores, standings, game details, team and player pages, leaderboards, the playoff bracket and the draft, all from publicly available NHL API data.
The app has two parts:
HokMob.App/ – ASP.NET Core (.NET 7) backend. It serves the built Angular app and proxies the NHL APIs.HokMob.App/ClientApp/ – Angular 15 frontend.The NHL APIs don't all send CORS headers, so the browser can't call them directly. The Angular app calls the backend, which forwards the request:
GET /api/nhl/score/now -> https://api-web.nhle.com/v1/score/now
| Route | Upstream | Controller / client |
|---|---|---|
/api/nhl/<path> | api-web.nhle.com/v1 | NhlController.cs, NhlApiClient.cs |
/api/nhl-stats/* | api.nhle.com/stats/rest/en | NhlStatsController.cs, NhlStatsApiClient.cs |
/api/nhl-search/player | search.d3.nhle.com | NhlSearchController.cs, NhlSearchApiClient.cs |
score, schedule, standings, gamecenter, player, ...).
To use a new api-web endpoint, add its first path segment to AllowedRoots in NhlController.cs./api/nhl/score/now rather than an NHL host.The simplest way to run both parts, from HokMob.App/ClientApp:
npm run dev
It starts the backend on https://localhost:7157 and an Angular dev server on plain HTTP; open
http://localhost:4200. Output is prefixed with [api] and [web], and Ctrl+C stops both. It needs no trusted dev
certificate, and runs on a newer .NET runtime too (it sets DOTNET_ROLL_FORWARD=Major).
The HTTPS route runs both from the backend project instead. It needs a trusted dev certificate
(dotnet dev-certs https --trust) and, with only .NET 8+ installed, DOTNET_ROLL_FORWARD=Major set first:
cd HokMob.App
dotnet run
Then open https://localhost:7157. The first run installs npm packages and starts the Angular dev server
(https://localhost:44424) automatically. Either way the Angular app reloads when you change source files, and
/api requests are forwarded to the backend via ClientApp/proxy.conf.js.
You can also run the Angular dev server on its own (cd HokMob.App/ClientApp, then npm start), but
/api/nhl/... calls only work while the backend is also running. To test the backend on its own, open
https://localhost:7157/api/nhl/score/now.
The ASP.NET Core dev certificate is missing or expired (they last one year). Check with
dotnet dev-certs https --check --verbose, then regenerate it:
dotnet dev-certs https --clean
dotnet dev-certs https --trust
If the Angular dev server then shows certificate errors, delete %APPDATA%\ASP.NET\https\hokmob.pem and
hokmob.key (bash/macOS: ~/.aspnet/https/). npm start re-exports them from the new certificate.
From HokMob.App/ClientApp:
npm run test:ci
That runs the Karma suite once in headless Chrome; npm test watches instead. The
same tests, a production build and a backend build run on every pull request and have to pass before merging.
A finished game's expected goals and Corsi come from Natural Stat Trick, which needs an access key. Never commit it.
For local runs, set it in user secrets from HokMob.App:
dotnet user-secrets set "NaturalStatTrick:Key" "<key>"
On Azure, add it as the NaturalStatTrick__Key application setting. Without a key the game page still works, just
without those stats. See "Natural Stat Trick" in docs/nhl-api.md.
Run dotnet publish -c Release from HokMob.App to build the backend and a production Angular bundle (output in
bin/Release/net7.0/publish). Pushing to master runs the same publish and deploys it to Azure. To build only the
Angular app, run ng build from HokMob.App/ClientApp; the artifacts land in dist/.
New Angular code is scaffolded from HokMob.App/ClientApp with ng generate component <name> (or directive,
pipe, service, ...).
CLAUDE.md – repo layout, editing conventions, how to run, build and test.docs/nhl-api.md – the NHL APIs: which one serves what, response conventions, caching, open
questions.docs/draft-page.md – the draft page's data and behaviour.