Geolocation is a microservice that enriches a payload with geographic coordinates.
Its mains responsibility is to listen to events with addresses and add latitude and longitude to them. To do that, it currently makes use of the power of Google Maps API, which works on top of a Geographic coordinate system.
It was designed to work with events, which means that it does not have a public API to return lat/long information synchronously.
- Ruby 2.7
- RabbitMQ
You can use docker to run this app.
docker-compose up -d
docker-compose exec geo rake db:create
docker-compose exec geo rake db:migrate
docker-compose exec geo rake db:test:prepare
docker-compose exec geo rspec
docker-compose logs -f
docker-compose up
docker-compose stop
docker-compose exec geo rspec
To execute this project must execute with Order-Service's project, so you need to clone both repositories on the same folder and extract the docker-compose.yml to root folder. (Both docker-compose.yml are equal)
docker-compose up --build