Feat : Ajout de la conf xdebug et des commandes utiles dans le README.md
This commit is contained in:
@@ -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.
|
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. <br>
|
||||||
|
Pour cela, il faut aller dans **Settings > PHP > Servers** <br>
|
||||||
|
* 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
|
## Utilisation du projet
|
||||||
### Backend
|
### Backend
|
||||||
L'api est disponible sur http://localhost:8080/api
|
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
|
make dev-nuxt
|
||||||
```
|
```
|
||||||
Le front sera accessible sur http://localhost:3000
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user