Skip to content

AhmedHdeawy/Parent-Assessment

Repository files navigation

Assessment Solution

Features

  • Using Abstarct Factory Pattern.
  • Using Repository Pattern.
  • Unit tests coverage.
  • Handle all Acceptance Criteria.
  • easy to install in a Docker container.

Installation

composer install
php artisan k:g
php artisan config:cache
php artisan serve

Docker

Task is very easy to install and deploy in a Docker container.

By default, the Docker will expose port 8080, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.

docker-compose up

Verify the server running by navigating to your server address in your preferred browser.

localhost:8080

Run API

You Can look at Endpoint using Postman here Postman Api

http://localhost:8080/api/v1/users
http://localhost:8080/api/v1/users?provider=DataProviderX
http://localhost:8080/api/v1/users?statusCode=refunded
http://localhost:8080/api/v1/users?balanceMin=120
http://localhost:8080/api/v1/users?balanceMax=320
http://localhost:8080/api/v1/users?balanceMin=120&balanceMax=320
http://localhost:8080/api/v1/users?currency=AED
http://localhost:8080/api/v1/users?page=2
http://localhost:8080/api/v1/users?provider=DataProviderX&statusCode=refunded&balanceMin=120&balanceMax=320&currency=AED&page=2

Test

php artisan test 

N|Solid

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published