# AGENTS.md - Development Guidelines This file contains essential information for AI agents working on this codebase. ## Project Overview PHP website for "Harmonie de Montpellier-Jacou" (music band) with a Vue.js 2 frontend for score management. - **Backend**: PHP with MySQL (legacy codebase) - **Frontend**: Vue.js 2 + Bootstrap Vue (in `frontend/score/`) - **API**: RESTful PHP API in `api/` directory ## Build Commands ### Frontend (Vue.js) ```bash cd frontend/score npm install npm run serve # Development server npm run build # Production build npm run lint # ESLint check ``` ### PHP No build step required. Deploy to PHP-enabled web server. ## Testing **No test framework configured.** To add tests: - **PHP**: Consider PHPUnit - **Vue**: Add Jest or Vitest via Vue CLI Run single test (when configured): ```bash # Example for Jest (not yet configured) npm test -- --testNamePattern="test name" ``` ## Code Style Guidelines ### PHP - Use ` ``` - **Token format**: JWT (HS256) - see `api/lib/Auth.php` - **Frontend**: Token stored in localStorage, auto-attached to API requests via axios interceptor - **Test**: http://localhost:5173 - login with admin/password - **API base URL**: http://localhost:8000/api/ ## Current Tech Stack (2024) - **Frontend**: SvelteKit (NOT Vue.js 2) in `/partitions/` - **Backend**: PHP API in `/api/` - **Scores storage**: `/legacy/Scores/` (directory-based, not MySQL)