mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
- Add +x to Python scripts with shebangs (3 files) - Remove -x from non-script files like .cpp, .txt, makefile (23 files) - Move shebang to first line in C/imageViewer/lint.sh
802 B
802 B
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
- Create a
.envfile inTS/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.
- Install dependencies and run both servers:
npm install
npm run dev
- Frontend: http://localhost:5173
- API Proxy: http://localhost:8787
Notes
- Live endpoint:
GET /api/live - Today endpoint:
GET /api/matches(uses today's date by default) - Edit polling intervals in
src/App.tsxif needed.
License
MIT