Building a Laravel API with TDD

Getting Started

Prerequisites

Docker

Installing

git clone git@github.com:fredyhenaodev/laravel-api-tdd.git

cd /laravel-api-tdd/docker

docker-compose build

docker-compose up -d

docker-compose exec php-fpm bash

cd /var/www

composer install

# Create field .env and copy .env.example and paste in .env

php artisan key:generate

Running the tests

cd /laravel-api-tdd/docker

docker-compose exec php-fpm bash

cd /var/www

php artisan test