# Projet personnel 2026 - Arena Battle
Application web de combat tour par tour. Le joueur se connecte, choisit un personnage et lance un duel 1v1 contre un adversaire. Le moteur de combat gère tours, sorts, buffs, debuffs, effets négatifs et journaux de combat.
Démo : http://162.19.76.60/
Identifiants (compte de test) : Demo / password
/api -> http://localhost:3000).Créer un fichier .env ou renommer le fichier .env.example dans server/:
PORT=express_port
PG_URL=postgres://user:password@server:port/database
JWT_SECRET=change_me
cd server
npm install
npm run db:create
npm run dev
cd client
npm install
npm run dev
Ouvrir http://localhost:5173
server: npm run db:create (créer les tables), npm run devclient: npm run dev, npm run build, npm run previewAuth:
POST /api/auth/registerPOST /api/auth/loginPOST /api/auth/logoutGET /api/auth/meSélection:
GET /api/initPOST /api/initialiseBattleCombat:
POST /api/battle/POST /api/battle/turn/POST /api/battle/reduce-character-spells-cdPOST /api/battle/check-character-negative-effectPOST /api/battle/check-character-buffsPOST /api/battle/check-character-debuffsPOST /api/battle/passive-per-turnPOST /api/battle/determine-player-actionPOST /api/battle/determine-enemy-actionPOST /api/battle/character-use-spellPOST /api/battle/check-character-alive.
├─ client/ # Svelte + Vite (UI)
├─ server/ # Express + moteur de combat
├─ conception/ # MCD / MLD
└─ README.md
conception/MCD.mdconception/MLD.md