spryker / project-boilerplate
Spryker project boilerplate
Requires
- php: >=7.3
- ext-bcmath: *
- ext-curl: *
- ext-gd: *
- ext-gmp: *
- ext-intl: *
- ext-json: *
- ext-libxml: *
- ext-openssl: *
- ext-pdo_pgsql: *
- ext-pgsql: *
- ext-readline: *
- ext-redis: *
- psr/cache: 1.0.1
- spryker-feature/deployment-tools: dev-master
- spryker-feature/spryker-core: dev-master
- spryker/documentation-generator-rest-api: *
- spryker/rest-request-validator: ^1.3.0
- spryker/scheduler-jenkins: ^1.2.0
- spryker/uuid: ^1.0.0
- symfony/console: ^5.2.0
- symfony/security-core: ^5.2.8
Requires (Dev)
- codeception/codeception: ^4.1.8
- codeception/module-asserts: ^1.3.0
- codeception/module-cli: ^1.0.2
- codeception/module-filesystem: ^1.0.2
- codeception/module-phpbrowser: ^1.0.1
- codeception/module-rest: ^1.0
- codeception/module-webdriver: ^1.1.0
- codeception/phpunit-wrapper: ^8.1.2 || ^9.0.0
- codeception/stub: ^3.7.0
- composer/package-versions-deprecated: ^1.8.0
- doctrine/lexer: ^1.0.2
- filp/whoops: ^2.7
- fzaninotto/faker: ^1.6
- pdepend/pdepend: ^2.2.4
- phpstan/phpstan: 0.12.78
- phpunit/phpunit: ^9.0.0
- psalm/phar: ~4.3.1
- roave/better-reflection: ~4.3.0
- roave/signature: ~1.2.0
- sllh/composer-versions-check: ^2.0.2
- spryker-feature/development-tools: dev-master
- spryker-sdk/codeception-phantoman: ^0.1.0
- spryker-sdk/composer-constrainer: ^0.2.0
- spryker-sdk/phpstan-spryker: ^0.3
- spryker-sdk/security-checker: ^0.1.0
- spryker/architecture-sniffer: ^0.5.0
- spryker/code-sniffer: dev-master
- spryker/docker-chromedriver: dev-master
- spryker/testify: ^3.0.0
- stecman/symfony-console-completion: *
This package is auto-updated.
Last update: 2024-11-19 17:50:54 UTC
README
License: MIT
Vagrant Installation
In order to install the application boilerplate on your machine, you can follow the instructions described in the link below:
For DevVM based installation instructions, see About the Installation Guides.
If you encounter any issues during or after the installation, see Troubleshooting article.
Docker installation
Docker installation
For detailed installation instructions of Spryker in Docker, see Getting Started with Docker.
For troubleshooting of Docker based instances, see Troubleshooting.
Prerequisites
For the installation prerequisites, see Docker Installation Prerequisites.
Recommended system requirements for MacOS:
Installation
Run the commands:
mkdir project-boilerplate && cd project-boilerplate git clone git@github.com:spryker/project-boilerplate.git . git clone git@github.com:spryker/docker-sdk.git docker
Production-like environment
- Run the following commands right after cloning the repository:
docker/sdk boot -s docker/sdk up
- Git checkout with assets and importing data:
git checkout your_branch
git submodule update --init --force docker && docker/sdk boot -s
docker/sdk up --assets --data
Optional
up
command arguments:
--assets
- build assets--data
- get new demo data
- Light git checkout:
git checkout your_branch
git submodule update --init --force docker && docker/sdk boot -s
docker/sdk up
- Reload all the data:
docker/sdk clean-data && docker/sdk up && docker/sdk console q:w:s -v -s
Developer environment
- Run the commands right after cloning the repository:
docker/sdk boot deploy.dev.yml docker/sdk up
- Git checkout:
git checkout your_branch
git submodule update --init --force docker && docker/sdk boot -s deploy.dev.yml
docker/sdk up --build --assets --data
Optional
up
command arguments:
--build
- update composer, generate transfer objects, etc.--assets
- build assets--data
- get new demo data
-
If you get unexpected application behavior or unexpected errors:
- Run the command:
git status
-
If there are unnecessary untracked files (red ones), remove them.
-
Restrart file sync and re-build the codebase:
docker/sdk trouble rm -rf ./docker && git submodule update --init --force docker && docker/sdk boot deploy.dev.yml docker/sdk up --build --assets
-
If you do not see the expected demo data on the Storefront:
-
Check the queue broker and wait until all queues are empty.
-
If the queue is empty but the issue persists, reload the demo data:
docker/sdk trouble rm -rf ./docker && git submodule update --init --force docker && docker/sdk boot deploy.dev.yml docker/sdk up --build --assets --data
-
Troubleshooting
No data on Storefront
Use the following services to check the status of queues and jobs:
- queue.spryker.local
- scheduler.spryker.local
Fail whale
- Run the command:
docker/sdk logs
- Add several returns to mark the line you started from.
- Open the page with the error.
- Check the logs.
MacOS and Windows - files synchronization issues in Development mode
- Follow sync logs:
docker/sdk sync logs
- Hard reset:
docker/sdk trouble && rm -rf vendor && rm -rf src/Generated && docker/sdk sync && docker/sdk up
Errors
ERROR: remove spryker_logs: volume is in use - [{container_hash}]
- Run the command:
docker rm -f {container_hash}
- Repeat the failed command.
Error response from daemon: OCI runtime create failed: .... \\\"no such file or directory\\\"\"": unknown.
Repeat the failed command.