This API has the function of serving and managing Avatars. The service allow to serve the avatars in different sizes and types of image Upload avatars associated with emails and delete avatars.
git clone https://github.com/matiass/docker-lumen-avatar-api.git
cd docker-lumen-avatar-api
To change configuration values, look in the docker-compose.yml
file and change the php
container's environment variables.
You have to modify the following variables with your gmail account data to make it work.
MAIL_USERNAME: [email protected]
MAIL_PASSWORD: mipassword
E-mails will only be sent when the variable APP_ENV has the following value:
APP_ENV: production
sudo docker-compose up -d
sudo docker exec -ti lumen_avatar_php composer install
sudo docker exec -ti lumen_avatar_php php artisan cache:clear
sudo docker exec -ti lumen_avatar_php composer dump-autoload
sudo docker exec -ti lumen_avatar_php php artisan migrate
Avatar API is running! (http://localhost:80/...)
Do you believe me, don't you?
Go to TEST SECTION
sudo docker exec -ti lumen_avatar_php phpunit --stderr
Check the Avatar_API.raml file
sudo docker-compose down
- Cache
- A control-script for managing the docker-infrastructure components for API Avatar
- Email queue