Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.8 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.8 KB

Phone Country API :

Sections :
  • About
  • Assumsion
  • Code Architecture :
    • BackEnd Architecture.
    • FrontEnd Architecture.
  • Test archture.
  • How to build and run.
  • Dockrize home Country API.

Assumsion:

As the data is small. I created the list static on the UI and create a Data util to provide me with the countey codes and the regex for each country. For a large data I see that data should be on the database on table country of three Column.

country_name country_code country_regex
Cameroon +237 (237)\ ?[2368]\d{7,8}$

Then render them on the page on load and when search join the country tale to complete the task . here i decide to make it as simple and clean as i could.

About:

It's a Spring-boot application with Thymeleaf using spring-data-jpa and sqlite3 database. You can filter using country and phone status Valid or Not Valid

Code Architecture:

Test Architecture:

How to build and run:

Pull the project and create mvn clean instal :

git pull


> mvn clean install

Then run as a spring boot application then go to: localost:8090

Dockrize home Country Api: