Skip to content

Commit

Permalink
Merge pull request #41 from BitBagCommerce/InstallationProcedures
Browse files Browse the repository at this point in the history
Updating installation procedures
  • Loading branch information
senghe authored Sep 13, 2023
2 parents d3d48f1 + b86a1b7 commit 3394e4f
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions doc/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Installation
```bash
$ composer require bitbag/catalog-plugin
$ composer require bitbag/catalog-plugin --no-scripts
```

Add plugin dependencies to your `config/bundles.php` file:
Expand Down Expand Up @@ -71,30 +71,31 @@ Default template for product catalog is `@BitBagSyliusCatalogPlugin/Catalog/Temp

Finish the installation by updating the database schema and installing assets:
```
$ symfony console doctrine:migrations:diff
$ symfony console doctrine:migrations:migrate
$ symfony console assets:install --symlink
$ symfony console sylius:theme:assets:install --symlink
$ bin/console cache:clear
$ bin/console doctrine:migrations:diff
$ bin/console doctrine:migrations:migrate
$ bin/console assets:install --symlink
$ bin/console sylius:theme:assets:install --symlink
```

### Parameters and Services which can be overridden
```yml
$ symfony console debug:container --parameters | grep bitbag_sylius_catalog_plugin
$ symfony console debug:container bitbag_sylius_catalog_plugin
$ bin/console debug:container --parameters | grep bitbag_sylius_catalog_plugin
$ bin/console debug:container bitbag_sylius_catalog_plugin
```

## Testing & running the plugin
```bash
$ symfony composer install
$ composer install
$ APP_ENV=test symfony server:start --port=8080 --dir=tests/Application/public --daemon
$ cd ./tests/Application/
$ symfony run yarn install
$ symfony run yarn build
$ symfony run yarn encore dev
$ symfony console doctrine:database:create --env=test
$ symfony console doctrine:schema:create --env=test
$ symfony console assets:install --env=test
$ symfony console sylius:fixtures:load --env=test
$ yarn install
$ yarn build
$ yarn encore dev
$ bin/console doctrine:database:create --env=test
$ bin/console doctrine:schema:create --env=test
$ bin/console assets:install --env=test
$ bin/console sylius:fixtures:load --env=test
$ symfony open:local
$ cd ../../
$ vendor/bin/behat
Expand Down

0 comments on commit 3394e4f

Please sign in to comment.