Clone the repo locally:
git clone https://github.com/jonquintero/api-job-test.git
cd api-job-testInstall PHP dependencies:
composer installSetup configuration:
cp .env.example .envGenerate application key:
php artisan key:generateSetup you own database.
Run database migrations:
php artisan migrate
php artisan queue:table
php artisan migrate
php artisan notifications:table
php artisan migrateRun database seeder:
php artisan db:seedSetup servermail in env file.
Run the dev server (the output will give the address):
php artisan serveThe endpoints uses:
GET /api/clients
GET /api/payments?client={uuid string}To storage payments:
POST /api/paymentsBody request example:
{
"expires_at": "2022-10-18",
"client_id": "7c037720-9597-46db-adbe-d300827f14bf"
}To run job:
php artisan queue:listen --timeout=0