eureka-dijkstra is a parent project composed of four projects:
- service-registry: server spring cloud netflix server to registers other clients
- rest-dto: common Dtos between rest projects
- rest-producer: client rest secured with database and dijkstra algorithm ( thanks vogella! )
- rest-consumer: client rest ask server-registry to call rest-producer (possible to balance with more than one rest-producer)
You can download run-eureka.sh
and execute to build all project.
- Git clone projects
$ git clone https://github.com/albertoolivan/eureka-dijkstra.git
$ git clone https://github.com/albertoolivan/server-registry.git
$ git clone https://github.com/albertoolivan/rest-dto.git
$ git clone https://github.com/albertoolivan/rest-producer.git
$ git clone https://github.com/albertoolivan/rest-consumer.git
- Install parent project
$ mvn install -f eureka-dijkstra/pom.xml
- Build and start up with docker-compose.yml
$ docker-compose -f eureka-dijkstra/docker-compose.yml up
- Browse this urls
###server-registry
###rest-producer
http://localhost:8098/city/info/MAD
http://localhost:8098/city/all
http://localhost:8098/city-distance?cityOriginId=MAD
http://localhost:8098/swagger-ui.html
user: user_rest
password: paSs123_w0rd
###rest-consumer
http://localhost:8082/city/all
http://localhost:8082/city/info/MAD
Short distance between cities with departure time (ISO Time)
Less steps between cities with departure time (ISO Time)