GithubHelp home page GithubHelp logo

spring-netflix-stack-playground's Introduction

spring-netflix-stack-playground

A simple guestbook application implemented with the Spring-Boot and the Spring-Netflix-Stack (Zuul, Hystrix, Eureka, Feign).

All applications can be build with Maven. Run

mvn install 

in each folder to create a fat-jar. Execute the jar with

java -jar [name of jar]"

The following applications are available:

  • guestbook-backend : Backend REST-Service for GuestbookEntries
  • guestbook-frontend: Thymeleaf page + Spring MVC
  • guestbook-discovery: Eureka discovery server
  • guestbook-proxy: Zuul proxy server
  • guestbook-mail: mail web service build on spring mail

Check out all apps and start all fat-jars to run the complete app. guestbook-discovery must be started first.

Link to App (via proxy): http://localhost:8000/

Link to Eureka Registry: http://localhost:8761/

Link to Hystrix Dashboard: http://localhost:8081/hystrix/monitor?stream=http%3A%2F%2Flocalhost%3A8081%2Fhystrix.stream

Docker setup

To build docker images for all apps, run the following Maven command from the root directory of the project:

mvn package docker:build

To start all images as docker containers, use the docker-compose.yml file in the root directory from the command line:

docker-compose up -d

When started, the application is available under the following URL (change the IP to the one you run your docker on)

http://192.168.99.100:8000/  (Guestbook)
http://192.168.99.100:8761/  (Eureka Registry)

The docker-maven plugin is also registered in the maven install-phase. To build all applications AND build all docker images execute

mvn install

from the root directory of the project.

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.