feat: Intégration du frontend Flutter depuis YNOV
- Framework: Flutter web - Pages: Login, inscription, dashboards - Services: API client, authentification, gestion d'état - Intégration avec backend NestJS - Dockerfile pour déploiement web
This commit is contained in:
@@ -14,3 +14,56 @@ A few resources to get you started if this is your first Flutter project:
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
|
||||
### Workflow Git
|
||||
|
||||
Le projet suit un **Git Flow simplifié** avec 3 branches principales :
|
||||
|
||||
- `main` : version stable et déployée en production
|
||||
- `develop` : version intégrée et testée avant passage en production
|
||||
- `feature/*`, `fix/*`, `hotfix/*` : branches spécifiques au développement
|
||||
|
||||
**Cycle standard :**
|
||||
```bash
|
||||
# Création d’une feature
|
||||
git checkout develop
|
||||
git checkout -b feature/FRONT-021-zone-enfants
|
||||
|
||||
# Développement
|
||||
git add .
|
||||
git commit -m "FRONT-021: Widget zone enfants"
|
||||
git push origin feature/FRONT-021-zone-enfants
|
||||
|
||||
# Pull Request => vers develop
|
||||
# Merge → suppression de la branche
|
||||
Voir CONTRIBUTING.md pour les conventions détaillées.
|
||||
```
|
||||
### Structure du projet Flutter
|
||||
|
||||
Le projet suit une architecture modulaire MVC simplifiée compatible avec Provider (ou Riverpod léger).
|
||||
|
||||
```plaintext
|
||||
lib/
|
||||
├── main.dart # Point d’entrée
|
||||
├── routes/ # go_router ou auto_route
|
||||
├── models/ # Classes de données (User, Parent, Enfant, etc.)
|
||||
├── services/ # Requêtes HTTP, AuthService, StorageService
|
||||
├── utils/ # Helpers, validateurs, formatteurs
|
||||
├── widgets/ # Composants UI réutilisables
|
||||
├── screens/ # Pages par grande fonctionnalité
|
||||
│ ├── auth/ # Connexion, inscription, mot de passe oublié
|
||||
│ ├── registration/ # Création parent / assistante maternelle
|
||||
│ ├── dashboard/ # Tableau de bord parent / AM / gestionnaire
|
||||
│ ├── profile/ # Gestion des infos utilisateur
|
||||
│ └── children/ # Fiches enfants
|
||||
```
|
||||
|
||||
### Architecture choisie
|
||||
🟩 Type : MVC Modulaire avec Provider (ou Riverpod léger)
|
||||
|
||||
Avantages :
|
||||
|
||||
- Simple à prendre en main
|
||||
- Rapide à structurer
|
||||
- Permet la séparation des features
|
||||
- Adaptée à un projet Flutter Web PWA
|
||||
|
||||
Reference in New Issue
Block a user