Motivation

Challenge proposed by Jumia

Installation (via docker)

*tested on docker version (Docker version 20.10.5, build 55c4c88)

  • first of all build and start container
$ docker-compose up -d

Tests

Run tests using

docker-compose exec app php artisan test

Consume API

set Accept as application/json

-endpoints (should create in swagger)
http://localhost:8000/api/jobs (get)
http://localhost:8000/api/jobs (post)

*post parameters {"title": "Programer","description": "Solve problems"}

Improvments

  • env file should not be here
  • should add authentication to api
  • add api documentation like swagger for example
  • force return response as json
  • would be good have producer and consumer in differents ms
  • real integration to send sms and email