Skip to content

Demo of Spring Boot Microservices, including: Eureka, Hystrix, Swagger UI

Notifications You must be signed in to change notification settings

lostvicking/microservice-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice-demo

Demo of Spring Boot Microservices, including: Eureka, Hystrix, Swagger UI

3 Spring Boot Microservices: Eureka-Server, Bookstore-Service and Reading-Service Java 8 only for now, there are some issues getting Sring Cloud dependencies to compile under Java 9.

Eureka-Server: discovery server, enables other microservices to call each other by service name
Bookstore-Service: exposes /recommended GET method for getting book recommendations
Reading-Service: exposes /to-read GET method which calls Bookstore-Service

Download Java 8 from here
Download Maven from here

All projects can be compiled with Maven:

mvn clean install

Run Eureka-Server like so:

java -jar target/eureka-server-1.0-SNAPSHOT.jar 

Run Reading-Service like so:

java -jar target/reading-1.0-SNAPSHOT.jar

Run the Bookstore-Service like so, specify you own parameters:

java -jar target/bookstore-1.0-SNAPSHOT.jar --readingList=<Specify reading list here> --server.port=<port_number>

Swagger UI endpoints are configured for Bookstore-Serivce and Reading-Service at:

http://<host>:<port>/swagger-ui.html 

About

Demo of Spring Boot Microservices, including: Eureka, Hystrix, Swagger UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages