Secret agent is in the isolated country nearby, where exactly ?
Good morning, agent. MI6 is trying to gather statistics about its missions. Your mission, should you decide to accept it, has two parts:
An isolated agent is defined as an agent that participated in a single mission.this endpoint will find the most isolated country (the country with the highest degree of isolation).
For the sample input (see db-setup script) input:
So the result is Morocco with an isolation degree of 3.
Body: { “target-location”: “[address or geo coordinates]”
Will Find the closest and farthest missions from a specific address (it uses Google API for this)
Create the following environemnt variables to make the project work:
GEOCODE_API_KEY - Create an API key on Google Developer Console for Google Maps Geocoding API service
(you can create a .env file with the env variable)
For Production:
docker-compose up
For Development:
docker-compose -f docker-compose.dev.yml up
Wanna just compose it and bash into the container without starting the service ? you got it!
docker-compose -f docker-compose.dev.yml run web bash
just go in there and do whatever you feel like -> you got full control