[FIX] Fix the documentations of the project.
This commit is contained in:
@@ -11,9 +11,9 @@ Site web de l'Harmonie de Montpellier-Jacou pour la gestion et le partage de par
|
||||
|
||||
## Stack technique
|
||||
|
||||
- **Frontend** : SvelteKit
|
||||
- **Backend** : PHP API REST
|
||||
- **Stockage** : Fichiers (PDF) dans le répertoire `legacy/Scores/`
|
||||
- **Frontend** : SvelteKit (Svelte 5, runes) + Tailwind CSS — `partitions/`
|
||||
- **Backend** : PHP 8.5 REST API (sans framework) — `api/`, base `http://localhost:8000` (sans préfixe `/api`)
|
||||
- **Stockage** : Fichiers (PDF) dans le répertoire `legacy/Scores/` (pas de base de données)
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -24,12 +24,26 @@ cd api
|
||||
php -c php-upload.ini -S localhost:8000 router.php
|
||||
```
|
||||
|
||||
`-c php-upload.ini` est requis pour l'upload des PDF (64M). L'API répond sur
|
||||
`http://localhost:8000`.
|
||||
|
||||
### Frontend
|
||||
|
||||
```bash
|
||||
cd partitions
|
||||
npm install
|
||||
npm run dev
|
||||
npm run dev # http://localhost:5173
|
||||
npm run build # génère partitions/build
|
||||
```
|
||||
|
||||
Le site déployé est exposé via le lien symbolique `frontend -> partitions/build`.
|
||||
|
||||
## Tests
|
||||
|
||||
```bash
|
||||
cd api
|
||||
rm -f /tmp/rate_* 2>/dev/null
|
||||
php tests.php # attendu : 53/53
|
||||
```
|
||||
|
||||
## Déploiement
|
||||
@@ -38,6 +52,9 @@ npm run dev
|
||||
./deploy/deploy.sh
|
||||
```
|
||||
|
||||
Le build frontend doit être présent dans `frontend/`. `legacy/` et `api/tests.php`
|
||||
ne sont pas inclus dans l'archive.
|
||||
|
||||
## Licence
|
||||
|
||||
GPL v2
|
||||
|
||||
Reference in New Issue
Block a user