Skip to content

A SpringCloud example of with two SpringBoot clients connect one of them with Dijkstra Algorith and dabatase

Notifications You must be signed in to change notification settings

albertoolivan/eureka-dijkstra

Repository files navigation

eureka-dijkstra

eureka-dijkstra is a parent project composed of four projects:

Alt text

You can download run-eureka.sh and execute to build all project.

Alt text

  1. 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
  1. Install parent project
$ mvn install -f eureka-dijkstra/pom.xml
  1. Build and start up with docker-compose.yml
$ docker-compose -f eureka-dijkstra/docker-compose.yml up
  1. Browse this urls

###server-registry

http://localhost:8761

Alt text

###rest-producer

http://localhost:8098

http://localhost:8098/city/info/MAD

http://localhost:8098/city/all

http://localhost:8098/city/itinerary-short?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z

http://localhost:8098/city/itinerary-less?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z

http://localhost:8098/city-distance?cityOriginId=MAD

http://localhost:8098/swagger-ui.html

user: user_rest
password: paSs123_w0rd

Alt text

###rest-consumer

http://localhost:8082

http://localhost:8082/city/all

http://localhost:8082/city/info/MAD

Short distance between cities with departure time (ISO Time)

http://localhost:8082/find-itinerary-short?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z

Less steps between cities with departure time (ISO Time)

http://localhost:8082/find-itinerary-less?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z

http://localhost:8082/swagger-ui.html

Alt text

About

A SpringCloud example of with two SpringBoot clients connect one of them with Dijkstra Algorith and dabatase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages