This service categorizes and validates country phone numbers.
Note: Java must be installed on your machine to run this project. Preferrably Java 11
Note: You must have installed a java based IDE preferrably IntelliJ
- Clone the project from github onto your machine
- Create a new project from existing sources and select the cloned project and let the IDE setup all the required dependencies
- Click Run button on the top Right place holder of the IDE
- The service will launch on port 8080 so ensure the port is not being used by another service though you can change this in the properties file.
- You can use the collection shared below to test the endpoints.
Note: You must have docker installed
- Change directory into the project folder
- Ensure the dependencies are well setup by running
mvn clean install
- Package the project by running
mvn package
- Build the image by running
docker build -t ms-msisdn-categorizer-service:v1.0.0 .
- If you run
docker images
you should seems-msisdn-categorizer-service
in the list
- Run the image
docker run --rm -p 8080:8080 ms-msisdn-categorizer-service:v1.0.0
- This will launch the image on port 8080
Note: Install postman on your machine
- Import the collection below and test https://www.getpostman.com/collections/49ba51fbbe44f0c4a474