RouteTest is a Spring boot application that calculates shortests distance between two countries, it levarages the jgrapht java Library for distance calculations.
Clone the project from the repo https://github.com/3barney/path_finder
To start the application run:
./mvnw spring-boot:run
For tests do run
```./mvnw test```
Or build docker image and start container:
./mvnw package
docker build -t routing_test .
docker run -p 9090:9090 --rm routing_test
Service provides a single endpoint
http://localhost:9090/route/KEN/UGA
{
"route": [
"KEN",
"UGA"
]
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.