informatique:participalibre
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:participalibre [2020/11/25 14:25] – [Installer les dépendances de participalibre] simon | informatique:participalibre [2020/11/25 14:38] (Version actuelle) – [Lancer le serveur localement] simon | ||
|---|---|---|---|
| Ligne 18: | Ligne 18: | ||
| ===== Installer les dépendances de participalibre ===== | ===== Installer les dépendances de participalibre ===== | ||
| + | |||
| + | ==== PHP ==== | ||
| Une fois [[composer]] et [[laravel]] installé, la doc propose d' | Une fois [[composer]] et [[laravel]] installé, la doc propose d' | ||
| Ligne 30: | Ligne 32: | ||
| $ cd participalibre | $ cd participalibre | ||
| $ composer install | $ composer install | ||
| + | </ | ||
| + | < | ||
| + | <code bash> | ||
| Installing dependencies from lock file (including require-dev) | Installing dependencies from lock file (including require-dev) | ||
| Verifying lock file contents can be installed on current platform. | Verifying lock file contents can be installed on current platform. | ||
| Ligne 90: | Ligne 95: | ||
| You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | ||
| </ | </ | ||
| + | </ | ||
| La ligne importante c'est : | La ligne importante c'est : | ||
| Ligne 99: | Ligne 105: | ||
| <code bash> | <code bash> | ||
| $ composer update | $ composer update | ||
| + | </ | ||
| + | < | ||
| + | <code bash> | ||
| Loading composer repositories with package information | Loading composer repositories with package information | ||
| Updating dependencies | Updating dependencies | ||
| Ligne 131: | Ligne 140: | ||
| You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | ||
| </ | </ | ||
| + | </ | ||
| Il manque manifestement " | Il manque manifestement " | ||
| Ligne 589: | Ligne 599: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ==== Front avec npm ==== | ||
| + | <code bash> | ||
| + | $ npm install --dev | ||
| + | npm WARN install Usage of the `--dev` option is deprecated. Use `--include=dev` instead. | ||
| + | |||
| + | added 1116 packages, and audited 1116 packages in 18s | ||
| + | |||
| + | 10 vulnerabilities (4 low, 6 high) | ||
| + | |||
| + | To address all issues, run: | ||
| + | npm audit fix | ||
| + | |||
| + | Run `npm audit` for details. | ||
| + | </ | ||
| + | |||
| + | Donc, il vaut mieux utiliser cette commande : | ||
| + | <code bash> | ||
| + | $ npm install --include=dev | ||
| + | </ | ||
| + | |||
| + | La commande conseille d' | ||
| + | <code bash> | ||
| + | $ npm audit fix | ||
| + | |||
| + | added 7 packages, removed 16 packages, changed 19 packages, and audited 1107 packages in 6s | ||
| + | |||
| + | 1 package is looking for funding | ||
| + | run `npm fund` for details | ||
| + | |||
| + | found 0 vulnerabilities | ||
| + | </ | ||
| + | |||
| + | Et aussi '' | ||
| + | <code bash> | ||
| + | $ npm fund | ||
| + | participalibre | ||
| + | └── https:// | ||
| + | └── ansi-styles@4.3.0 | ||
| + | </ | ||
| + | |||
| + | ===== Configuration de l'env Laravel ===== | ||
| + | |||
| + | On copie l'env par défaut : | ||
| + | <code bash> | ||
| + | $ cp .env.example .env | ||
| + | </ | ||
| + | |||
| + | Et on génère une clé : | ||
| + | <code bash> | ||
| + | $ php artisan key: | ||
| + | Application key set successfully. | ||
| + | </ | ||
| + | |||
| + | ===== Lancement du serveur ===== | ||
| + | |||
| + | ==== Compiler le front-end ==== | ||
| + | Il faudra compiler le code du front-end au préalable avec '' | ||
| + | <code bash> | ||
| + | $ npm run dev | ||
| + | </ | ||
| + | |||
| + | (Note: Pour travailler sur le front-end '' | ||
| + | |||
| + | ==== Lancer le serveur localement ==== | ||
| + | <code bash> | ||
| + | $ php artisan serve | ||
| + | </ | ||
| + | |||
| + | Le site est accessible sur [[http:// | ||
| + | |||
| + | {{ : | ||
informatique/participalibre.1606314316.txt.gz · Dernière modification : de simon
