maltorpro / microservice-shop-demo

Sample microservice shop application implemented with spring boot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice Shop Demo

This is a sample microservice shop application implemented with spring boot. It should be serve as framework for further implementations.

Table of contents

Preconditions

Before starting please install the following software.

  • Jave JDK 1.8
  • Git
  • Gradle
  • Docker
  • Eclipse with the following plugins
    • Spring IDE
    • Eclipse Buildship

Deployment

Clone the the required git repositories.

$ git clone https://github.com/maltorpro/microservice-infrastructure.git
$ git clone https://github.com/maltorpro/microservice-monitoring.git
$ git clone https://github.com/maltorpro/config-shop-demo.git
$ git clone https://github.com/maltorpro/microservice-shop-demo.git

Build the projects using gradle over the console.

$ cd microservice-infrastructure
$ ./gradlew build

$ cd microservice-monitoring
$ ./gradlew build

$ cd /microservice-shop-demo
$ ./gradlew build

Setup the Eclipse workspace.
Import the projects using the import "Existing Gradle Project" provided by the Eclipse-Buildship plugin. You can build the projects by clicking on "Refresh Gradle Project" in the context menu of the project.

Run the Application in Eclipse

Open the "Boot Dashboard" view and start the applications in the the following order:
Infrastructure

  1. config-server
  2. discover-server
  3. edge-server
  4. auth-server
  5. resource-server

Services

  1. product-service
  2. recommendation-service
  3. review-service
  4. product-composite-service

Monitoring
Since further docker images are required for the monitoring, docker swarm is preferred for execution.

Run the Application in Docker-Swarm

The docker images are pushed to my docker hub repository.
docker repository

You can use this images for creation a docker swarm. For more information, please see the following notes:
docker swarm notes
access URLs
apache2 config

Of course, you can also build your own docker images. Therefore, the required docker files are available in each project.

About

Sample microservice shop application implemented with spring boot.


Languages

Language:Java 80.4%Language:HTML 10.8%Language:TypeScript 4.2%Language:Shell 2.4%Language:JavaScript 1.1%Language:Dockerfile 0.7%Language:Vim Snippet 0.4%Language:CSS 0.1%