Skip to content

Commit

Permalink
Update readme installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Dec 10, 2024
1 parent fe67fe3 commit eab5a1f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,29 @@ there you will find the <a href="https://docs.sylius.com/en/latest/plugin-develo

### Traditional

1. Run `composer create-project sylius/plugin-skeleton ProjectName`.

2. From the plugin skeleton root directory, run the following commands:
1. From the plugin skeleton root directory, run the following commands:

```bash
$ (cd tests/Application && yarn install)
$ (cd tests/Application && yarn build)
$ (cd tests/Application && APP_ENV=test bin/console assets:install public)

$ (cd tests/Application && APP_ENV=test bin/console doctrine:database:create)
$ (cd tests/Application && APP_ENV=test bin/console doctrine:schema:create)
# Optionally load data fixtures
$ (cd tests/Application && APP_ENV=test bin/console sylius:fixtures:load --no-interaction)
```

To be able to set up a plugin's database, remember to configure you database credentials in `tests/Application/.env` and `tests/Application/.env.test`.
To be able to set up a plugin's database, remember to configure your database credentials in `tests/Application/.env` and `tests/Application/.env.test`.
1. Run your local server:
```bash
symfony server:ca:install
APP_ENV=test symfony server:start --dir=tests/Application/public --daemon
```
1. Open your browser and navigate to `https://localhost:8000`.
### Docker
Expand Down

0 comments on commit eab5a1f

Please sign in to comment.