Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samfelgar/queue-example
https://github.com/samfelgar/queue-example
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/samfelgar/queue-example
- Owner: samfelgar
- Created: 2021-10-28T05:16:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T05:28:26.000Z (about 3 years ago)
- Last Synced: 2024-11-08T14:13:31.086Z (2 months ago)
- Language: PHP
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Queue Example
## Prerequisites
Make sure you have Docker configured on your system. That's it!
## Installation
1. Clone this repo to your local machine
2. Run `composer install` to install the project dependencies
1. If you don't have composer installed, run the following command:```
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php80-composer:latest \
composer install --ignore-platform-reqs
```3. Run `cp .env.example .env`
4. Run `./vendor/bin/sail up -d`
5. Run `./vendor/bin/sail artisan key:generate`
6. Done!## Running
This project has only three endpoints:
- `/dispatch` - Dispatches a payload with some extra fields
- `/dispatch/raw` - Dispatches a 'raw' payload with fewer data
- `/pop` - Returns the first available job on queue