This is an example of an API developed in PHP with Laravel 10 using TDD, Clean Architecture and Design Patterns, also respecting the principles of SOLID.
- After cloning this repository,
- go to directory (
cd test-appliance-api
), - and now you need to install Composer dependencies (even if you don't have PHP and Composer installed in your environment):
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer create-project --ignore-platform-reqs
- then
./vendor/bin/sail up -d
- and for last
./vendor/bin/sail artisan migrate --seed
For execute tests just run:
./vendor/bin/sail artisan test