Premiere verison route admin operationnelle

This commit is contained in:
karim hassan
2025-08-25 12:39:54 +00:00
parent eabd0aa50f
commit 38ea5c7da0
21 changed files with 692 additions and 53 deletions

View File

@@ -0,0 +1,22 @@
Super Sunday — Patch API: fix CommonJS + routes
===============================================
Problème : l'API plantait avec "require is not defined" car package.json
contenait "type": "module".
Ce patch :
- Force CommonJS (package.json sans "type":"module")
- Fournit un index Express simple + routes (tournaments, participants)
- API écoute sur port 4000 (env PORT)
Installation
------------
unzip -o supersunday_api_commonjs_fix_patch.zip -d .
docker compose build --no-cache api
docker compose up -d api
docker compose logs --since=2m api
Tests
-----
curl -i http://localhost/api/health
curl -s http://localhost/api/tournaments