To run this application you must have installed Docker and Docker Compose on your machine.
- Clone the repository by issuing the command
git clone https://github.com/nickbass72/optimus-prime.git
- Enter the application directory with
cd optimus-prime
- Create your local
.env
file copying it from.env.dist
. Open.env
file and edit the variable values if needed. The meaning of each variable in the file is explained with a comment. - The Docker container for development can be built and started issuing
docker-compose up -d --build
. For Mac users using the Mutagen extension for Docker desktop, the command ismutagen-compose -f docker-compose-mutagen.yml up -d --build
There are two configuration parameters available in config/parameters.php
file. The meaning of each of them is explained inside the file.
- Enter the container issuing
docker-compose exec -it app bash
ormutagen-compose exec -it app bash
. - Execute the command
bin/console application
. The prime numbers multiplication table should be displayed as a result.
- To run the tests inside the container issue the command
vendor/bin/phpunit
.