-
Notifications
You must be signed in to change notification settings - Fork 1
Development Environment
Sergii Pryz edited this page Jan 1, 2025
·
8 revisions
The Transfer Object (TO) repository includes a development environment facilitated by a Docker SDK shell script.
To view all available commands and arguments (e.g., phpunit
, phpstan
, etc.), run the following command:
$ docker/sdk
To begin working with the Transfer Object (TO) project, please ensure you have Docker and Docker Compose installed on your system.
Follow these steps to set up the project:
- Build Containers:
$ docker/sdk build
- Run Container in Background:
$ docker/sdk start
- Install Composer Dependencies:
$ docker/sdk composer install
- Install CaptainHook: CaptainHook is a Git hook library for PHP projects.
$ docker/sdk hook-install
- Verify CaptainHook Installation:
$ docker/sdk hook config:info
Xdebug is disabled by default. To enable Xdebug, follow these steps:
- Stop Container:
$ docker/sdk stop
- Rebuild with Xdebug Enabled:
$ docker/sdk -x build
- Start the Container:
$ docker/sdk start