Mise à jour : dernières modifs

This commit is contained in:
karim hassan
2025-08-24 14:49:43 +00:00
parent e3620c7f42
commit c5f16fe27b
45 changed files with 2426 additions and 552 deletions

View File

@@ -1,14 +1,38 @@
# SuperSunday — V1 (prod, port 8080)
# Super Sunday Padel — Full PROD bundle
Stack: **Postgres 16 + Node/Express API + Nginx static frontend**
Features: Players, Teams, Tournaments, Enrollments, Matches, Results, **Americano generator**, JWT Auth, basic admin SPA.
## Quick start
## Démarrage
```bash
chmod +x start.sh
./start.sh
# http://localhost:8080
cp .env.example .env
docker compose up -d --build
# Open http://localhost:8080
# Admin at http://localhost:8080/admin (login with ADMIN_EMAIL / ADMIN_PASSWORD from .env)
```
## Fonctionnalités
- Liste d'événements
- Inscription + téléchargement iCal
- Admin: consultation des inscriptions
- Seeds réalistes (8 éditions winter + live démo + futur)
## Push to Gitea (example)
```bash
git init
git add .
git commit -m "Super Sunday full prod v1"
git remote add origin <URL_DE_TON_GITEA>
git push -u origin main
```
## API (highlights)
- `POST /api/auth/login` -> { token }
- `GET /api/health`
- Players: `GET/POST/PUT/DELETE /api/players`
- Teams: `GET/POST/PUT/DELETE /api/teams`
- Tournaments: `GET/POST/PUT/DELETE /api/tournaments`
- Enrollments: `GET/POST/DELETE /api/enrollments`
- Matches: `GET/POST/PUT /api/matches`, `POST /api/matches/generate` (Americano)
- Scores: `POST /api/matches/:id/score`
Protected routes require `Authorization: Bearer <token>`.
## Notes
- Change `JWT_SECRET` and admin credentials before going live.
- SQL seed creates minimal schema + demo tournament.