gateway
just forwards or transforms the requests. Exposes the endpoints and decides the transport method based on./gateway/config.yml
driver location service
receives all the location data by the driver through NSQ.zombie driver service
checks if the driver has been moved from his location and it's a zombie driver or not through HTTP.
Your machine should have installed the following tools in order to run the project:
Go
and you can find the instructions here.Docker
client and you can find instructions heredocker-compose
cli tool. You can find instructions here
All the setup is based on Docker containers. Each service has its own Dockerfile and it builds each go microservice explicitly. Each Dockerfile
is declared on the root path of each service. More specifically here
So there is no need by your side to set the project in a $GOPATH
you can use it immediately.
The ports which are available for usage of each microservice are exposed and are declared in docker-compose.yml. In this case the only exposed port is for gateway service which is the 8080.
The commands which you should use in order to run all the services are the followings:
make
docker-compose up -d