Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme installation instructions #447

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`.
mpysiak marked this conversation as resolved.
Show resolved Hide resolved

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:
mpysiak marked this conversation as resolved.
Show resolved Hide resolved

```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
Loading