testsAndMisc-archive/TS/champions_leauge_scores
Krzysztof kuhy Rudnicki 01091c09ce Add tests and fix pre-commit issues across all projects
- C/lichess_random_engine, vocabulary_curve, misc/split,
  1dvelocitysimulator, opening_learner: test suites added
- CPP/miscelanious: tests added
- TS/battery-status, champions_leauge_scores, two-inputs: tests added
- python_pkg/fm24_searcher, wake_alarm: new packages added
- Fix ruff/cppcheck/eslint/clang-format failures
- Update .gitignore for C/C++ build artifacts
2026-04-12 20:45:24 +02:00
..
server Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
src Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.env.example feat: football api 2025-08-24 13:56:30 +02:00
.gitignore feat: football api 2025-08-24 13:56:30 +02:00
index.html feat: football api 2025-08-24 13:56:30 +02:00
package-lock.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
package.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
README.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
run.sh feat: football api 2025-08-24 13:56:30 +02:00
tsconfig.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
vite.config.ts Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00

Champions League Live Scores (React + TS)

This app displays live and today's UEFA Champions League results. It uses:

  • React + TypeScript (Vite) for the frontend
  • A tiny Express proxy server that calls football-data.org to fetch match data

Setup

  1. Create a .env file in TS/champions_leauge_scores/:
FOOTBALL_DATA_API_KEY=your_api_token_here
PORT=8787

Sign up at https://www.football-data.org/ to get a free API token. Free tier has rate limits.

  1. Install dependencies and run both servers:
npm install
npm run dev

Notes

  • Live endpoint: GET /api/live
  • Today endpoint: GET /api/matches (uses today's date by default)
  • Edit polling intervals in src/App.tsx if needed.

License

MIT