Code Monkey home page Code Monkey logo

microservice-shop-demo's Introduction

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.

microservice-shop-demo's People

Contributors

maltorpro avatar

Watchers

DreamChaser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.