- enter the .docker folder, and run the following command:
.\build.bat
- get back to the root folder, and run the following command:
.\run-container.ps1
- enter the .docker folder, and run the following command:
./build.sh
- get back to the root folder, and run the following command
./run-container.sh
- at this point we are inside the container, let's run the followng command:
composer update
- then enter the project folder:
cd HeroExample/src/
- Run the program as follows:
or
php main.php factory=0
php main.php factory=1