We can run this application starting individual services or from docker.
All the services are written using spring boot so all the services has a starting Application entry point.
-
Book Service and Review service are using MYSQL database so we need to start the docker database first a. Goto ${BASE_DIR}/spring-cloud-microservices/ and execute $ docker-compose -f docker-db-conpose.yml up b. Alternatively we can create bookservice and reviewservice schema in our local db as flyway can't create the schema c. If we have selected the second approach make sure db connection port has also been updated properly.
-
Start a. service-registry b. uaa-service c. book-service d. hystrix-monitor-service e. inventory-service f. review-service g. api-gateway
-
Individual services can be accessed
a. Eureka Service: http://localhost:8761 b. API Gateway: http://localhost:8080 c. Hystrix Dashboard: http://localhost:9000/hystrix -
To see application running access the URL http://localhost:8080/books/api/v1/books It will take care of redirecting the browser for UAA
We have to go to ${BASE_DIR}/spring-cloud-microservices/ and execute $ docker-compose up. It will take care of all the services anlongwith MYSQL DB one by one.
-
Individual services can be accessed
a. Eureka Service: http://localhost:8761 b. API Gateway: http://localhost:8080 c. Hystrix Dashboard: http://localhost:9000/hystrix -
To see application running access the URL http://localhost:8080/books/api/v1/books It will take care of redirecting the browser for UAA