gabrieldarezzo / simple-php-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consumir uma API,
Ex:
https://pokeapi.co/api/v2/pokemon/1/

https://pokeapi.co/api/v2/pokemon/idPokemano/ 1 ~ 10228

===== Produzir/Consumir uma fila (SQS)

Dentro do Worker Gerar um .pdf (lib?) Gerar um PDF do Pokemano (pelo SQS)

DataDog?

https://pokeapi.co/api/v2/pokemon/1/

Install:

Copy file .env.example to .env

cp .env.example .env

Setting App && DB:

docker-compose up --build -d

Setting App && DB:

docker exec -it app php artisan migrate:fresh --seed

Composer install

docker exec -it app composer install
docker exec -it app php artisan queue:work --queue=high,default

Just up

docker-compose up --force-recreate -d

Utils:

Enter in container:

docker exec -it app bash

URLs:

Env Url
Local http://localhost/health
QA -

Execute tests:

docker exec -it app ./vendor/bin/phpunit

Deploy ?

Scripts:

php composer.phar --no-dev --prefer-dist install 
php artisan key:generate  

About


Languages

Language:PHP 94.8%Language:Dockerfile 3.2%Language:HTML 1.1%Language:Shell 0.9%