- git clone https://github.com/kemalovski/GamblingGroupDevCodeTest.git
- cd GamblingGroupDevCodeTest/app
- composer update
- cd ..
- docker-compose up -d
- docker exec -it app bash
- mv .env.example .env
- php artisan key:generate
- http://localhost:8000/affiliates
Warn: If you are not installing with docker please change in GamblingGroupDevCodeTest/app/tests/Unit/AffiliateServiceTest.php 20th Line path way. If you installed with docker just follow the sections.
- docker exec -it app bash
- cd /var/www
- ./vendor/bin/phpunit tests/Unit/GreatCircleServiceTest.php
- ./vendor/bin/phpunit tests/Unit/AffiliateServiceTest.php