The project has as main objective the processing queue work with Redis and Horizon. It has a structure of modules for micro-services.
- Docker
- Composer
- Clone your repository, example:
git clone https://github.com/edvaldotorres/api-events
- Head over to the project directory.
cd api-events
- Run the servers
docker-compose up --build -d
NOTE: This may take a while if this is the first time installing this as a container.
- Set the proper permissions to the project files .
cd app
chmod -R 777 storage/
- Install the dependencies
composer install
- Build the migrate.
docker exec -it app php artisan migrate
- Start horizon.
docker exec -it app php artisan horizon
- Start cron.
docker exec -it app php artisan event:email
NOTE: Configure mailtrap in env file.
- You can now open your application with API platform: https://localhost/api/
👤 Edvaldo Torres de Souza
- Website: edvaldotorres.com.br
- Github: @edvaldotorres
- LinkedIn: Edvaldo Torres
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!