BookStore-config-server
In microservices architecture, it's essential to manage configuration properties efficiently across services. The Spring Cloud Config Server simplifies this by providing a centralized location for storing and distributing configuration properties. This config-server set up a Spring Boot Configuration Server for all BookStore services to retrieve their configuration from it.
To run this project, you need the following tools installed:
-
Clone this repository to your local machine:
https://github.com/samah222/BookStore-microservices.git
-
Navigate to the project directory:
cd config-server -
Build and run the Spring Boot Server:
mvn spring-boot:run
The Book microservice will start on port 8888, see the application.properties file. To build docker image for this service. There are two options, using Dockerfile or using Buildpacks:
Then to build the image use the following commands:
mvn spring-boot:build-image