#lancer le projet docker compose up #Après l'installation de package docker compose up --build
#bug
-
Bug front : npm install --save-dev @types/react dans le cas ou le package React n'est pas présent.
-
Bug des variables d'environnement avec Docker : => Variable d'environnement non reconnue à l'utilisation du package 'dotenv' => Résolution : création d'une ligne 'env_file' dans la partie backend du fichier docker-compose.dev.yml qui indique le chemin jusqu'au fichier .env (situé à la racine du dossier /backend) et suppression de la dépendance 'dotenv'.
-
Erreur eslint : => Dans le fichier eslintrc.js modifier la valeur de la propieté project en ajoutant /backend/ devant tsconfig
["./backend/tsconfig.json"]
-
Import des images : => pour le moment placer les images dans le dossier public car on ne peut pas les importer depuis un dossier assets dans src => pour utiliser une image avec la propriete Css background-image: url(''), placer l'image dans le dossier de son composant et non dans le dossier public
Etapes pour envoyer les données
Node Créer entité typeOrm ajouter à datasource Créer un controller Créer un fichier contact-route qui liste les routes liées au prise de contact
React Appeler l'api messageController