Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

BookStore-config-server

BookStore-config-server

Table of Contents

Project Overview

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.

Getting Started

Prerequisites

To run this project, you need the following tools installed:

Running the Config Server

  1. Clone this repository to your local machine:

    https://github.com/samah222/BookStore-microservices.git
    
  2. Navigate to the project directory:

    cd config-server
    
  3. 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