https://github.com/commercetools/commercetools-php-training
https://github.com/commercetools/commercetools-php-training
audit-documentation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/commercetools/commercetools-php-training
- Owner: commercetools
- Created: 2016-12-08T10:42:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T23:47:12.000Z (almost 3 years ago)
- Last Synced: 2026-02-02T03:58:33.585Z (5 months ago)
- Topics: audit-documentation
- Language: PHP
- Homepage:
- Size: 203 KB
- Stars: 0
- Watchers: 60
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Commercetools PHP training repository
=========
This project aims to get a quick intro to the Commercetools Platform.
https://github.com/commercetools/commercetools-php-training
Setup project:
```bash
composer install
```
Running Training tests:
```bash
env $(cat parameters.env | xargs) vendor/bin/phpunit
```
### Docker
Build runtime image from scratch:
```bash
docker build -t sphereio/commercetools-php-training .
```
Setup:
```bash
docker run --rm -v${PWD}:/app -w /app sphereio/commercetools-php-training composer install
```
Running Training tests:
```bash
docker-compose up
```
or
```bash
docker run --rm --env-file parameters.env -v${PWD}:/app -w /app sphereio/commercetools-php-training vendor/bin/phpunit
```
### Vagrant
Setup and starting the application:
```bash
vagrant up
```
Running Training tests:
```bash
vagrant ssh -c 'cd training; env $(cat parameters.env | xargs) vendor/bin/phpunit'
```
### PhpStorm Configuration
```
Languages > Frameworks > PHP : Select CLI interpreter
```
#### Local
```
Languages > Frameworks > PHP > Testframeworks :
Add local entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist
```
#### Vagrant
```
Languages > Frameworks > PHP > Testframeworks :
Add remote entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist
```
```
Run/Debug Configurations
Add PHPUnit entry: defined in the configuration file
```