Skip to content

axelduret/laraxel-tdd

Repository files navigation

Features

laraxel-tdd includes :

  • laraxel-vanilla 1.0.0
  • laravel 10.0.0

laraxel-vanilla is just a simple Docker startup kit with :

  • php:8.2.2-apache-buster

  • postgres:latest

  • dpage/pgadmin4:latest

  • redis:latest

  • redislabs/redisinsight:latest

  • phpstan/phpstan


Installation

After cloning this repository, move to the root directory and follow these steps :

cp .env.example .env

docker build .

docker compose up

composer install


Laravel

If you want to install Laravel, move to the root directory and follow these steps :

cd src/Infrastructure/Laravel/

cp .env.example .env

composer install

Before running migrations you will need to execute Docker shell :

docker exec -it laraxel_tdd /bin/bash

cd src/Infrastructure/Laravel/

php artisan migrate:fresh

Start coding and enjoy!

http://localhost:8000/


phpstan

If you want to install phpstan, move to the root directory and follow these steps :

cd tools/

composer install

Run phpstan from root directory :

tools/vendor/bin/phpstan