尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A home for Madden Connected Franchise leagues. Anyone in a league signs in, connects their EA account, picks the league, and CFM Manager keeps it synced from EA and builds its pages (standings, scores, cap space, contracts, transactions). Installable on phones as a web app; App Store / Play builds come later via Capacitor.
src/): Next.js on Vercel. Email sign-in (Supabase), the Connect EA flow (/connect), My leagues (/dashboard), league pages (/l/<slug>).supabase/migrations/): Supabase Postgres with row-level security. EA sessions are encrypted (AES-256-GCM) before they're stored and are only readable by the server and the worker.worker/, .github/workflows/sync-leagues.yml): GitHub Actions every 3 hours. For each league it refreshes the EA session, checks whether the league moved, and if so pulls everything into league-data/<slug>/raw.json.gz in Supabase Storage.The EA code is ported from the NCL sync engine (ncl-sync/ea/sync.mjs), which was adapted from snallabot (MIT License, Copyright (c) 2024 snallabot).
cfm-manager (team CFM Manager)cfm-manager (East US)supabase/migrations/0001_init.sql. Under Authentication → URL configuration, set the Site URL to the Vercel address and add <site>/auth/callback as a redirect URL..env.example.SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY, EA_CLIENT_SECRET, EA_TOKEN_KEY (same value as in Vercel).cp .env.example .env.local # fill in
npm install
npm run dev
npm run sync # run the worker once (needs the same env vars)
Update src/lib/ea/constants.ts (client id, year) and the EA_CLIENT_SECRET secret from snallabot's ea_constants.ts.