Ajout doc

This commit is contained in:
2026-05-18 23:11:49 +02:00
parent 4cba9ce74b
commit 0074c28dcd
7 changed files with 112 additions and 133 deletions
+24
View File
@@ -184,6 +184,18 @@
<option name="screenX" value="1080" /> <option name="screenX" value="1080" />
<option name="screenY" value="2408" /> <option name="screenY" value="2408" />
</PersistentDeviceSelectionData> </PersistentDeviceSelectionData>
<PersistentDeviceSelectionData>
<option name="api" value="33" />
<option name="brand" value="samsung" />
<option name="codename" value="a13x" />
<option name="id" value="a13x" />
<option name="labId" value="google" />
<option name="manufacturer" value="Samsung" />
<option name="name" value="Galaxy A13 5G" />
<option name="screenDensity" value="300" />
<option name="screenX" value="720" />
<option name="screenY" value="1600" />
</PersistentDeviceSelectionData>
<PersistentDeviceSelectionData> <PersistentDeviceSelectionData>
<option name="api" value="34" /> <option name="api" value="34" />
<option name="brand" value="samsung" /> <option name="brand" value="samsung" />
@@ -340,6 +352,18 @@
<option name="screenX" value="1080" /> <option name="screenX" value="1080" />
<option name="screenY" value="2340" /> <option name="screenY" value="2340" />
</PersistentDeviceSelectionData> </PersistentDeviceSelectionData>
<PersistentDeviceSelectionData>
<option name="api" value="33" />
<option name="brand" value="samsung" />
<option name="codename" value="a32" />
<option name="id" value="a32" />
<option name="labId" value="google" />
<option name="manufacturer" value="Samsung" />
<option name="name" value="Galaxy A32" />
<option name="screenDensity" value="420" />
<option name="screenX" value="1080" />
<option name="screenY" value="2400" />
</PersistentDeviceSelectionData>
<PersistentDeviceSelectionData> <PersistentDeviceSelectionData>
<option name="api" value="36" /> <option name="api" value="36" />
<option name="brand" value="samsung" /> <option name="brand" value="samsung" />
Generated
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>
</project> </project>
Binary file not shown.
+37 -53
View File
@@ -1,59 +1,43 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p> # 🖥️ CESIZen - Plateforme Web & API
<p align="center"> Ce répertoire contient le backend Laravel, l'API REST sécurisée par Sanctum, et le tableau de bord d'administration utilisant le Design System de l'État Français (DSFR).
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
## About Laravel ## 🛠️ Guide d'installation
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: ### Prérequis
- Docker et Docker Compose
- Composer (optionnel si installation via Docker)
- Node.js & NPM
- [Simple, fast routing engine](https://laravel.com/docs/routing). ### Étapes d'installation
- [Powerful dependency injection container](https://laravel.com/docs/container). 1. **Cloner le projet** et entrer dans le dossier `WEB`.
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. 2. **Configuration de l'environnement** :
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). ```bash
- Database agnostic [schema migrations](https://laravel.com/docs/migrations). cp .env.example .env
- [Robust background job processing](https://laravel.com/docs/queues). ```
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). 3. **Lancer les conteneurs Docker** :
```bash
docker-compose up -d
```
4. **Installer les dépendances PHP & JS** :
```bash
docker exec cesizen-app composer install
docker exec cesizen-app npm install
docker exec cesizen-app npm run build
```
5. **Initialiser la base de données** :
```bash
docker exec cesizen-app php artisan key:generate
docker exec cesizen-app php artisan migrate --seed
```
6. **Accès** :
- Web : `http://localhost:8090`
- API : `http://localhost:8091`
Laravel is accessible, powerful, and provides tools required for large, robust applications. ---
## Learning Laravel ## 🏗️ Architecture Technique (API)
- **Framework** : Laravel 10 (PHP 8.2)
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application. - **Auth** : Laravel Sanctum (Tokens Bearer)
- **Admin** : FilamentPHP / DSFR
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - **Base de données** : MySQL 8.0
## Laravel Sponsors
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
### Premium Partners
- **[Vehikl](https://vehikl.com)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel)**
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
- **[Redberry](https://redberry.international/laravel-development)**
- **[Active Logic](https://activelogic.com)**
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
+24
View File
@@ -0,0 +1,24 @@
# ⌚ CESIZen - Wear OS App
Application pour montre connectée permettant une capture instantanée de l'humeur.
## 🛠️ Guide d'installation
### Prérequis
- Android Studio Jellyfish+
- Wear OS Emulator ou Montre (Wear OS 3.0+)
- Google Play Services installés sur le téléphone appairé
### Étapes d'installation
1. **Ouvrir le dossier** `Wear` dans Android Studio.
2. **Synchroniser Gradle** et attendre la fin du build.
3. **Lancer sur l'appareil** :
Sélectionnez votre montre/émulateur et cliquez sur "Run".
---
## 🏗️ Architecture Technique
- **Langage** : Kotlin
- **UI** : Jetpack Compose for Wear OS
- **Communication** : Data Layer API (MessageClient / DataClient)
- **Fonctionnalité** : Synchronisation bidirectionnelle de la date et de l'humeur quotidienne.
+19 -72
View File
@@ -1,84 +1,31 @@
# CESIZen - Application Mobile (Flutter) # 🤳 CESIZen - Application Mobile
CESIZen est une application de gestion de la santé mentale développée avec Flutter. Elle permet aux utilisateurs de suivre leur état émotionnel, de réaliser des diagnostics de stress et de pratiquer des exercices de relaxation. Application compagnon développée avec Flutter pour le suivi quotidien et les exercices de relaxation.
## 🚀 Fonctionnalités ## 🛠️ Guide d'installation
- **Authentification Sécurisée** : Connexion et inscription via une API Laravel (JWT). ### Prérequis
- **Espace Santé Personnel** : Modification du profil (Nom, Email, Mot de passe). - Flutter SDK (v3.19.x+)
- **Diagnostic de Stress** : Basé sur l'échelle de **Holmes et Rahe** (données dynamiques via API). - Android Studio / VS Code
- **Tracker d'Émotions** : Journal de bord complet (CRUD) pour suivre son humeur. - Un émulateur Android ou un appareil physique
- **Cohérence Cardiaque** : Exercice de respiration guidé (5s inspiration / 5s expiration).
- **Catalogue Détente** : Activités de relaxation (Méditation, Musique) filtrables par catégorie.
--- ### Étapes d'installation
1. **Entrer dans le dossier** `mobile`.
## 🛠️ Installation et Lancement 2. **Installer les packages** :
### 1. Prérequis
- [Flutter SDK](https://docs.flutter.dev/get-started/install) (dernière version stable recommandée).
- [Android Studio](https://developer.android.com/studio) ou [VS Code](https://code.visualstudio.com/).
- Un émulateur Android ou un appareil physique avec le débogage USB activé.
### 2. Récupération du projet
```bash
git clone <url-du-depot>
cd CESIZen/mobile
```
### 3. Installation des dépendances
```bash ```bash
flutter pub get flutter pub get
``` ```
3. **Configuration de l'API** :
--- Modifier l'URL de base de l'API dans `lib/core/constants/api_constants.dart` pour pointer vers votre IP locale (ex: `http://192.168.1.XX:8091/api`).
4. **Lancer l'application** :
## 🌐 Configuration de l'API
L'application communique avec un backend Laravel.
### URL de l'API
La configuration se trouve dans `lib/core/network/dio_client.dart`.
- **URL actuelle** : `https://apicesizen.sam-coffre.duckdns.org/api`
### Compatibilité et Sécurité (SSL Bypass)
Pour faciliter le développement sur des serveurs avec des certificats auto-signés ou en cours de configuration, le client `Dio` est configuré pour **ignorer les erreurs de certificat SSL**.
Dans `lib/core/network/dio_client.dart` :
```dart
// Le code inclut un SecurityContext qui accepte tous les certificats
(dio.httpClientAdapter as IOHttpClientAdapter).createHttpClient = () {
final client = HttpClient();
client.badCertificateCallback = (X509Certificate cert, String host, int port) => true;
return client;
};
```
**Note importante :** Sur Android, assurez-vous que `android:usesCleartextTraffic="true"` est bien présent dans le `AndroidManifest.xml` si vous repassez en HTTP simple.
---
## 🏃 Lancer l'application
Pour lancer l'application en mode debug :
```bash ```bash
flutter run flutter run
``` ```
Pour générer un APK de test :
```bash
flutter build apk --debug
```
## 📂 Structure du Projet
- `lib/core/` : Configuration réseau (Dio) et thèmes.
- `lib/features/auth/` : Gestion de l'authentification et du profil.
- `lib/features/diagnostics/` : Logique du questionnaire Holmes & Rahe.
- `lib/features/tracker/` : Journal des émotions (CRUD).
- `lib/features/exercises/` : Exercice de cohérence cardiaque.
- `lib/features/relaxation/` : Catalogue d'activités de détente.
--- ---
© 2024 CESIZen - Projet CDA
## 🏗️ Architecture Technique
- **Framework** : Flutter
- **State Management** : Provider
- **Synchronisation** : Google Wearable Data Layer (pour la montre)
- **Rendu** : Impeller / Skia (60 FPS pour les animations de respiration)
Binary file not shown.