A single page application in Java (Frameworks allowed) that uses the provided database to list and categorize country phone numbers.
Open your terminal then:
git clone https://github.com/Hassan-Elseoudy/JumiaBE
docker-compose up
- Wait for some time till it loads, Around to ~ 30 seconds till you see
Started JumiaApplication in xx.xxx seconds
- You can check from swagger over: http://localhost:8080/api/v1/jumia/swagger-ui/
- Select
Customer Controller
and then selectGET /api/v1/jumia/customer
then on the right, selectTry it out
. - You can filter by Country Id or by state or without any filtration.
- You can paginate by page number and size.
- Secrets should be added to a ConfigMap, Since this is a demo project, So It was added in the files for simplicity.
- Using YAGNI principle, I only added the
@GetMapping
request inCustomerController
, If the requirements were to add multiple endpoints, then It should be easily done later. - I preferred to use
Country
as a table in the project, rather thatImmutableObjects
, So that we can easily add/remove/update the regex, but as I mentioned, no controllers. - There was no default values for page sizes, so I sat default to
10
and max page size to50
.
You can test on your local machine by run the JumiaIntegrationTests
file, I updated the application-test
dialect.