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:22] – [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 427: | Ligne 437: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | Et puis '' | ||
+ | <code bash> | ||
+ | composer install | ||
+ | </ | ||
+ | < | ||
+ | <code bash> | ||
+ | Installing dependencies from lock file (including require-dev) | ||
+ | Verifying lock file contents can be installed on current platform. | ||
+ | Nothing to install, update or remove | ||
+ | Package fzaninotto/ | ||
+ | Package phpunit/ | ||
+ | Generating optimized autoload files | ||
+ | > Illuminate\Foundation\ComposerScripts:: | ||
+ | > @php artisan package: | ||
+ | Discovered Package: facade/ | ||
+ | Discovered Package: fideloper/ | ||
+ | Discovered Package: fruitcake/ | ||
+ | Discovered Package: laravel/ | ||
+ | Discovered Package: nesbot/ | ||
+ | Discovered Package: nunomaduro/ | ||
+ | Package manifest generated successfully. | ||
+ | 49 packages you are using are looking for funding. | ||
+ | Use the `composer fund` command to find out more! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Et '' | ||
+ | <code bash> | ||
+ | $ composer fund | ||
+ | </ | ||
+ | < | ||
+ | <code bash> | ||
+ | The following packages were found in your dependencies which publish funding information: | ||
+ | |||
+ | brick | ||
+ | math | ||
+ | https:// | ||
+ | |||
+ | doctrine | ||
+ | inflector, instantiator, | ||
+ | https:// | ||
+ | https:// | ||
+ | inflector | ||
+ | https:// | ||
+ | instantiator | ||
+ | https:// | ||
+ | lexer | ||
+ | https:// | ||
+ | |||
+ | dragonmantank | ||
+ | cron-expression | ||
+ | https:// | ||
+ | |||
+ | egulias | ||
+ | email-validator | ||
+ | https:// | ||
+ | |||
+ | facade | ||
+ | flare-client-php | ||
+ | https:// | ||
+ | |||
+ | fruitcake | ||
+ | laravel-cors | ||
+ | https:// | ||
+ | |||
+ | guzzlehttp | ||
+ | guzzle | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | league | ||
+ | commonmark | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | flysystem | ||
+ | https:// | ||
+ | flysystem, mime-type-detection | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | monolog | ||
+ | monolog | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | myclabs | ||
+ | deep-copy | ||
+ | https:// | ||
+ | |||
+ | nesbot | ||
+ | carbon | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | nunomaduro | ||
+ | collision | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | phpoption | ||
+ | phpoption | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | phpunit | ||
+ | php-code-coverage, | ||
+ | https:// | ||
+ | phpunit | ||
+ | https:// | ||
+ | |||
+ | ramsey | ||
+ | collection, uuid | ||
+ | https:// | ||
+ | collection | ||
+ | https:// | ||
+ | uuid | ||
+ | https:// | ||
+ | |||
+ | sebastian | ||
+ | code-unit-reverse-lookup, | ||
+ | https:// | ||
+ | |||
+ | swiftmailer | ||
+ | swiftmailer | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | symfony | ||
+ | console, css-selector, | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | theseer | ||
+ | tokenizer | ||
+ | https:// | ||
+ | |||
+ | vlucas | ||
+ | phpdotenv | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | voku | ||
+ | portable-ascii | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | Please consider following these links and sponsoring the work of package authors! | ||
+ | Thank you! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== 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.1606314150.txt.gz · Dernière modification : 2020/11/25 14:22 de simon