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 13:40] – [Laravel] simon | informatique:participalibre [2020/11/25 14:38] (Version actuelle) – [Lancer le serveur localement] simon | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| ==== Composer ==== | ==== Composer ==== | ||
| - | [[https:// | + | [[Composer]] ([[https:// |
| - | === Installation | + | L' |
| + | |||
| + | ===== Laravel | ||
| + | |||
| + | [[Laravel]] ([[https:// | ||
| + | |||
| + | L' | ||
| + | |||
| + | ===== Installer les dépendances de participalibre ===== | ||
| + | |||
| + | ==== PHP ==== | ||
| + | |||
| + | Une fois [[composer]] et [[laravel]] installé, la doc propose d' | ||
| + | |||
| + | On clone le dossier de participalibre : | ||
| <code bash> | <code bash> | ||
| - | $ php -r " | + | $ git clone https://framagit.org/participalibre/ |
| - | $ php -r "if (hash_file(' | + | |
| - | $ php composer-setup.php | + | |
| - | $ php -r " | + | |
| </ | </ | ||
| - | Il faut copier | + | On se place dans ce dossier et on lance l'installation des dépendances : |
| <code bash> | <code bash> | ||
| - | $ sudo mv composer.phar /usr/bin/ | + | $ cd participalibre |
| + | $ composer | ||
| </ | </ | ||
| + | < | ||
| + | <code bash> | ||
| + | Installing dependencies from lock file (including require-dev) | ||
| + | Verifying lock file contents can be installed on current platform. | ||
| + | Your lock file does not contain a compatible set of packages. Please run composer update. | ||
| + | |||
| + | Problem 1 | ||
| + | - laravel/ | ||
| + | - laravel/ | ||
| + | Problem 2 | ||
| + | - league/ | ||
| + | - league/ | ||
| + | Problem 3 | ||
| + | - tijsverkoyen/ | ||
| + | - tijsverkoyen/ | ||
| + | Problem 4 | ||
| + | - facade/ | ||
| + | - facade/ | ||
| + | Problem 5 | ||
| + | - phar-io/ | ||
| + | - phar-io/ | ||
| + | Problem 6 | ||
| + | - phpunit/ | ||
| + | - phpunit/ | ||
| + | Problem 7 | ||
| + | - phpunit/ | ||
| + | - phpunit/ | ||
| + | Problem 8 | ||
| + | - scrivo/ | ||
| + | - scrivo/ | ||
| + | Problem 9 | ||
| + | - theseer/ | ||
| + | - theseer/ | ||
| + | Problem 10 | ||
| + | - laravel/ | ||
| + | - facade/ | ||
| + | - facade/ | ||
| + | |||
| + | To enable extensions, verify that they are enabled in your .ini files: | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | ||
| + | </ | ||
| + | </ | ||
| - | J'ai rajouté un alias dans '' | + | La ligne importante c'est : |
| <code bash> | <code bash> | ||
| - | alias composer=' | + | Your lock file does not contain a compatible set of packages. Please run composer |
| </ | </ | ||
| - | ===== Laravel ===== | + | On lance donc '' |
| + | <code bash> | ||
| + | $ composer update | ||
| + | </ | ||
| + | < | ||
| + | <code bash> | ||
| + | Loading composer repositories with package information | ||
| + | Updating dependencies | ||
| + | Your requirements could not be resolved to an installable set of packages. | ||
| - | [[https://laravel.com/|Laravel]] est le framework | + | Problem 1 |
| + | - laravel/framework[v7.0.0, | ||
| + | - Root composer.json requires | ||
| - | ==== Installation ==== | + | To enable extensions, verify that they are enabled in your .ini files: |
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. | ||
| + | </ | ||
| + | </ | ||
| - | On installe [[Laravel]] avec [[Composer]] | + | Il manque manifestement " |
| <code bash> | <code bash> | ||
| - | $ composer global require laravel/installer | + | $ sudo apt install php-mbstring |
| + | </code> | ||
| + | |||
| + | Il manque d' | ||
| + | <code bash> | ||
| + | $ sudo apt install php-tijsverkoyen-css-to-inline-styles | ||
| + | $ sudo apt install php-phar-io-manifest | ||
| + | $ sudo apt install php-codecoverage | ||
| + | $ sudo apt install phpunit | ||
| + | </ | ||
| + | |||
| + | (Je pensais que [[Composer]] allait se charger d'installer | ||
| + | |||
| + | On relance '' | ||
| + | <code bash> | ||
| + | $ composer update | ||
| </ | </ | ||
| < | < | ||
| <code bash> | <code bash> | ||
| - | Changed current directory to / | ||
| - | Using version ^4.1 for laravel/ | ||
| - | ./ | ||
| - | Running composer update laravel/ | ||
| Loading composer repositories with package information | Loading composer repositories with package information | ||
| Updating dependencies | Updating dependencies | ||
| - | Lock file operations: | + | Lock file operations: |
| - | - Locking | + | - Removing scrivo/ |
| - | - Locking | + | - Upgrading brick/math (0.8.15 => 0.9.1) |
| - | - Locking | + | - Upgrading doctrine/ |
| - | - Locking symfony/ | + | - Upgrading dragonmantank/ |
| - | - Locking | + | - Upgrading egulias/ |
| - | - Locking | + | - Upgrading facade/ |
| - | - Locking | + | - Upgrading facade/ |
| - | - Locking | + | - Upgrading facade/ |
| - | - Locking | + | - Upgrading fideloper/ |
| - | - Locking | + | - Upgrading filp/whoops (2.7.2 => 2.9.1) |
| - | - Locking | + | - Upgrading guzzlehttp/ |
| - | - Locking | + | - Upgrading guzzlehttp/ |
| + | - Upgrading guzzlehttp/ | ||
| + | - Upgrading hamcrest/ | ||
| + | - Upgrading | ||
| + | - Upgrading laravel/ | ||
| + | - Upgrading league/ | ||
| + | - Upgrading league/ | ||
| + | - Locking | ||
| + | - Upgrading mockery/ | ||
| + | - Upgrading monolog/ | ||
| + | - Upgrading myclabs/ | ||
| + | - Upgrading nesbot/ | ||
| + | - Upgrading nikic/ | ||
| + | - Upgrading nunomaduro/ | ||
| + | - Upgrading opis/ | ||
| + | - Upgrading phpdocumentor/ | ||
| + | - Upgrading phpdocumentor/ | ||
| + | - Upgrading phpdocumentor/ | ||
| + | - Upgrading phpoption/ | ||
| + | - Upgrading phpspec/ | ||
| + | - Upgrading phpunit/ | ||
| + | - Upgrading ramsey/ | ||
| + | - Upgrading ramsey/uuid (4.0.1 => 4.1.1) | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Locking | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading | ||
| + | - Upgrading | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading | ||
| + | - Upgrading | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading symfony/ | ||
| + | - Upgrading theseer/ | ||
| + | - Upgrading tijsverkoyen/ | ||
| + | - Upgrading vlucas/ | ||
| + | - Upgrading voku/ | ||
| + | - Upgrading webmozart/ | ||
| Writing lock file | Writing lock file | ||
| Installing dependencies from lock file (including require-dev) | Installing dependencies from lock file (including require-dev) | ||
| - | Package operations: | + | Package operations: |
| - | - Downloading symfony/polyfill-php80 (v1.20.0) | + | - Downloading doctrine/ |
| - | - Downloading symfony/process | + | - Downloading doctrine/ |
| - | - Downloading symfony/polyfill-mbstring | + | - Downloading dragonmantank/ |
| - | - Downloading symfony/polyfill-intl-normalizer | + | - Downloading symfony/var-dumper |
| - | - Downloading symfony/ | + | - Downloading psr/log (1.1.3) |
| - | - Downloading symfony/polyfill-ctype | + | - Downloading monolog/ |
| - | - Downloading symfony/string | + | - Downloading voku/ |
| - | - Downloading psr/container | + | - Downloading phpoption/ |
| - | - Downloading symfony/service-contracts (v2.2.0) | + | - Downloading vlucas/ |
| - | - Downloading symfony/ | + | - Downloading symfony/css-selector |
| - | - Downloading symfony/console | + | - Downloading tijsverkoyen/ |
| - | - Downloading laravel/installer | + | - Downloading symfony/deprecation-contracts |
| + | - Downloading symfony/routing (v5.1.8) | ||
| + | | ||
| + | - Downloading symfony/ | ||
| + | - Downloading symfony/mime (v5.1.8) | ||
| + | - Downloading symfony/http-foundation | ||
| + | - Downloading symfony/ | ||
| + | - Downloading psr/event-dispatcher | ||
| + | - Downloading symfony/event-dispatcher-contracts (v2.2.0) | ||
| + | - Downloading symfony/ | ||
| + | - Downloading symfony/ | ||
| + | - Downloading symfony/ | ||
| + | - Downloading symfony/ | ||
| + | - Downloading symfony/ | ||
| + | - Downloading egulias/ | ||
| + | - Downloading swiftmailer/ | ||
| + | - Downloading ramsey/ | ||
| + | - Downloading brick/math (0.9.1) | ||
| + | - Downloading ramsey/uuid (4.1.1) | ||
| + | - Downloading psr/ | ||
| + | - Downloading opis/ | ||
| + | - Downloading symfony/translation-contracts (v2.3.0) | ||
| + | - Downloading symfony/ | ||
| + | - Downloading nesbot/ | ||
| + | - Downloading league/ | ||
| + | - Downloading league/ | ||
| + | - Downloading league/ | ||
| + | - Downloading laravel/framework (v7.29.3) | ||
| + | - Downloading filp/whoops (2.9.1) | ||
| + | - Downloading facade/ | ||
| + | - Downloading facade/ | ||
| + | - Downloading facade/ | ||
| + | - Downloading fideloper/ | ||
| + | - Downloading asm89/ | ||
| + | - Downloading fruitcake/ | ||
| + | - Downloading fzaninotto/ | ||
| + | - Downloading ralouphie/ | ||
| + | - Downloading psr/ | ||
| + | - Downloading guzzlehttp/ | ||
| + | - Downloading guzzlehttp/ | ||
| + | - Downloading guzzlehttp/ | ||
| + | - Downloading nikic/ | ||
| + | - Downloading dnoegel/ | ||
| + | - Downloading psy/psysh (v0.10.4) | ||
| + | - Downloading laravel/ | ||
| + | - Downloading hamcrest/ | ||
| + | - Downloading mockery/ | ||
| + | - Downloading nunomaduro/ | ||
| + | - Downloading webmozart/ | ||
| + | - Downloading phpdocumentor/ | ||
| + | - Downloading phpdocumentor/ | ||
| + | - Downloading phpdocumentor/ | ||
| + | - Downloading phpunit/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading phpunit/ | ||
| + | - Downloading phpunit/ | ||
| + | - Downloading phpunit/ | ||
| + | - Downloading theseer/ | ||
| + | - Downloading sebastian/ | ||
| + | - Downloading phpunit/ | ||
| + | - Downloading doctrine/ | ||
| + | - Downloading phpspec/ | ||
| + | - Downloading phar-io/ | ||
| + | - Downloading phar-io/ | ||
| + | - Downloading myclabs/ | ||
| + | - Downloading phpunit/ | ||
| + | - Installing doctrine/ | ||
| + | - Installing doctrine/ | ||
| + | - Installing dragonmantank/ | ||
| - Installing symfony/ | - Installing symfony/ | ||
| - | - Installing symfony/ | ||
| - Installing symfony/ | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| - Installing symfony/ | - Installing symfony/ | ||
| - Installing symfony/ | - Installing symfony/ | ||
| Ligne 84: | Ligne 336: | ||
| - Installing symfony/ | - Installing symfony/ | ||
| - Installing symfony/ | - Installing symfony/ | ||
| - | - Installing laravel/installer | + | |
| - | 7 package suggestions were added by new dependencies, | + | - Installing monolog/ |
| - | Generating autoload files | + | - Installing voku/ |
| - | 10 packages you are using are looking for funding. | + | - Installing phpoption/ |
| + | - Installing vlucas/ | ||
| + | - Installing symfony/ | ||
| + | - Installing tijsverkoyen/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing psr/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing egulias/ | ||
| + | - Installing swiftmailer/ | ||
| + | - Installing ramsey/ | ||
| + | - Installing brick/math (0.9.1): Extracting archive | ||
| + | - Installing ramsey/uuid (4.1.1): Extracting archive | ||
| + | - Installing psr/ | ||
| + | - Installing opis/ | ||
| + | - Installing symfony/ | ||
| + | - Installing symfony/ | ||
| + | - Installing nesbot/ | ||
| + | - Installing league/ | ||
| + | - Installing league/ | ||
| + | - Installing league/ | ||
| + | | ||
| + | - Installing filp/whoops (2.9.1): Extracting archive | ||
| + | - Installing facade/ | ||
| + | - Installing facade/ | ||
| + | - Installing facade/ | ||
| + | - Installing fideloper/ | ||
| + | - Installing asm89/ | ||
| + | - Installing fruitcake/ | ||
| + | - Installing fzaninotto/ | ||
| + | - Installing ralouphie/ | ||
| + | - Installing psr/ | ||
| + | - Installing guzzlehttp/ | ||
| + | - Installing guzzlehttp/ | ||
| + | - Installing guzzlehttp/ | ||
| + | - Installing nikic/ | ||
| + | - Installing dnoegel/ | ||
| + | - Installing psy/psysh (v0.10.4): Extracting archive | ||
| + | - Installing laravel/ | ||
| + | - Installing hamcrest/ | ||
| + | - Installing mockery/ | ||
| + | - Installing nunomaduro/ | ||
| + | - Installing webmozart/ | ||
| + | - Installing phpdocumentor/ | ||
| + | - Installing phpdocumentor/ | ||
| + | - Installing phpdocumentor/ | ||
| + | - Installing phpunit/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing phpunit/ | ||
| + | - Installing phpunit/ | ||
| + | - Installing phpunit/ | ||
| + | - Installing theseer/ | ||
| + | - Installing sebastian/ | ||
| + | - Installing phpunit/ | ||
| + | - Installing doctrine/ | ||
| + | - Installing phpspec/ | ||
| + | - Installing phar-io/ | ||
| + | - Installing phar-io/ | ||
| + | - Installing myclabs/ | ||
| + | - Installing phpunit/ | ||
| + | 1 package suggestions were added by new dependencies, | ||
| + | Package fzaninotto/ | ||
| + | Package phpunit/ | ||
| + | Generating | ||
| + | > 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! | Use the `composer fund` command to find out more! | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | 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.1606311646.txt.gz · Dernière modification : de simon
