Skip to content

jonquintero/api-job-test

Repository files navigation

Installation

Clone the repo locally:

git clone https://github.com/jonquintero/api-job-test.git
cd api-job-test

Install PHP dependencies:

composer install

Setup configuration:

cp .env.example .env

Generate application key:

php artisan key:generate

Setup you own database.

Run database migrations:

php artisan migrate
php artisan queue:table
php artisan migrate
php artisan notifications:table
php artisan migrate

Run database seeder:

php artisan db:seed

Setup servermail in env file.

Run the dev server (the output will give the address):

php artisan serve

The endpoints uses:

GET /api/clients
GET /api/payments?client={uuid string}

To storage payments:

POST /api/payments

Body request example:

{
    "expires_at": "2022-10-18",
    "client_id": "7c037720-9597-46db-adbe-d300827f14bf"
}

To run job:

 php artisan queue:listen --timeout=0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages