diff --git a/README.md b/README.md index 46127f8..a482067 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,16 @@ make install ``` Dans le cas ou le `make start` plante à cause du port de la bdd, il faut modifier **POSTGRES_PORT** dans le fichier .env.docker.local, remplacer le par un port disponible. +### Configuration xdebug +Pour configurer xdebug, il faut ajouter un serveur sur phpstorm.
+Pour cela, il faut aller dans **Settings > PHP > Servers**
+* Name : ferme-docker +* Host : localhost +* Port : 8080 +* Path : File/Directory -> l'endroit où est stocké votre projet et le path -> /var/www/html + +Pour que xdebug fonctionne sur windows, il faut modifier la variable **XDEBUG_CLIENT_HOST** par votre ip local + ## Utilisation du projet ### Backend L'api est disponible sur http://localhost:8080/api @@ -31,3 +41,21 @@ Pour le frontend, il suffit de taper la commande suivante qui va lancer le serve make dev-nuxt ``` Le front sera accessible sur http://localhost:3000 + +## Commandes utiles +Pour restart le container +```bash +make restart +``` +Pour lancer les TU +```bash +make test +``` +Pour accéder au container et lance des commandes +```bash +make shell +``` +Pour clear le cache Symfony +```bash +make cache-clear +```