1- Clone the project using git command git clone https://github.com/abhidev54/emailservice.git 2- Update mysql database credentials in .env file 3- go to emailservice directory and run docker command docker-compose --env-file .env up --build 4- For database migration docker-compose exec emailservice_lumen_1 php artisan migrate 5- Start queue processor in new terminal docker-compose exec emailservice_lumen_1 php artisan queue:work
1- Clone the project using git command git clone https://github.com/abhidev54/emailservice.git 2- go to emailservice directory and run below commands composer install 3- Update mysql database credentials in .env file 4- Run database migration command php artisan migrate 5- Start the server php -S lumen:8000 -t public 6- Start queue processor in new terminal php artisan queue:work
1- http://localhost:8000/mail/send (POST request for sending email)
{
"to_email":"[email protected]",
"to_name":"Abhishek Yadav",
"from_email":"[email protected]",
"from_name":"Email Service",
"subject":"Remider email 1",
"body":"Hi, its a reminder email"
}
2- http://localhost:8000/mail/history (GET Request for getting history of emails)
Postman collection (incase you want to check via postman however i have created VUEJS application, repo : https://github.com/abhidev54/emailservice-portal)
https://www.getpostman.com/collections/d88e937e9039434543e3