EMPIRE is an example of how to use microservices with Spring Boot for a develop a Forum application. The EMPIRE can be used as the base for various other projects with microservices. The software Eureka and Zull are used for service discovery and gateway. A Backend is created to the connection among all microservices. The view microservice is an application to the view layer. For the security of system, the JWT is used for generating a token to access the microservices. This project was developed based on the course of DevDojo.
-
Download the project with the clone in the repository or .zip
-
Open the project "forum-microservices" as a Maven project in an IDE
-
Install the lombok plugin in your IDE
-
Execute the Discovery microservice as a Java Application
-
Execute the Gateway microservice as a Java Application
-
Execute the others microservices also as a Java application
-
Open a browser and enter in localhost:8085
-
Generate a new spring project and add in "forum-application"
-
In the pom.xml, change the parent to the main path (see the others pom.xml for example), change the build for the build defined in other microservices and remove the spring dependencies.
-
Rename the application.properties to application.yml and add the service discovery and the name of microservice (see the others microservices)