Skip to content

KarnamShyam1947/springboot-microservices

Repository files navigation

Book Ordering Microservice

Spring Boot 3.1.1 Spring Security 5 Spring Cloud 2022 PostgreSQL 14 PostgreSQL 14 Static Badge Java 17 Maven 4

Overview

This project is a Book Ordering Microservice built using Spring Boot. It demonstrates various design patterns and includes features such as authentication using Keycloak, API Gateway, service discovery, and OpenFeign for communication between microservices.

Features

  • Microservices Architecture: Each component of the application is designed as an independent microservice.
  • Authentication: Secure user authentication and authorization using Keycloak.
  • API Gateway: A gateway to route requests to the appropriate microservices.
  • Service Discovery: Utilizes Spring Cloud Netflix Eureka for service discovery.
  • OpenFeign: Simplifies HTTP client creation for inter-service communication.
  • Design Patterns: Incorporates various design patterns to enhance code structure and reusability.

Architecture

The architecture of the system is based on microservices that interact with each other through well-defined APIs. Below is a high-level overview of the architecture:

Technologies Used

  • Spring Boot
  • Spring Cloud
  • Keycloak
  • Eureka
  • OpenFeign
  • Maven

Getting Started

Prerequisites

  • Java 11 or higher
  • Maven
  • Keycloak Server (for authentication)
  • Docker (optional)

Installation

  1. Clone the repository:

    git clone https://github.com/KarnamShyam1947/springboot-microservices.git
    cd springboot-microservices
  2. Set up Keycloak:

    Follow the Keycloak documentation to set up your Keycloak server. Create a realm and configure the necessary clients and roles.

  3. Build Project

    mvn clean install

Configuration

Update the application.yml or application.properties files with the necessary configuration for your environment, including Keycloak details, database configuration, etc.

Usage

Once the microservices are up and running, you can interact with the API Gateway to place orders, manage users, and perform other operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages