Git Product home page Git Product logo

microservices4vaadin's Introduction

microservices4vaadin CircleCI Coverage Status

Exemplary application to show the SSO and OAuth2 secured integration of microservices with Spring Cloud and Vaadin. Main concepts in this projects are:

  • Microservices ("Software that Fits in Your Head")
  • Secured Gateway (SSO and OAuth2)
  • Service Discovery
  • Circuit Breaking
  • Shared Session overall Services
  • Event store to fulfill CQRS principles

Architecture:

Architecture

  • Authserver:
    • Authentification and authorization service
    • Allows user login and also user registration via REST
    • Generates spring session (persisted in Redis) which also holds the security context
  • Configserver
    • Centralized configuration of each service
  • Edge:
    • SSO Gateway to Frontend and also directly to the Backend
    • UI for the landing page, the login and the registration panels
    • Gets the security context and the user data from spring session
  • Eventstore:
    • Distribute events across microservices via RabbitMQ and persist them in MongoDB
  • Frontend:
    • Vaadin frontend with some simple but responsive UI
    • Load balanced (Ribbon) access to backend
    • Gets user data from spring session
  • UserService:
    • Represents the user domain
  • Backend:
    • Simple but secured REST resource as backend for the frontend
  • Discovery: service discovery with eureka
  • Turbine+Hystrixdashboard: use hystrix as circuit breaker

ToDo:

  • add a backend service

Main frameworks:

Installation:

  • install JDK 8
  • install Redis+RabbitMQ+MongoDB+MySQL (you can also use the docker-compose.yml file
  • Run gradlew clean build to compile and build the application
  • Run start-all.bat to start the list of services
  • http://localhost should bring you to the landing page (with a redirect to https)

Development:

Set up project:

  • checkout git repository
  • run docker-compose up -d do start dependent Redis, RabbitMQ, MongoDB and MySQL services
  • gradlew clean build to compile project
  • run start-all.bat in windows or start-all.sh in unix

Hints:

  • Database for the authserver microservices4vaadin_authserverdb and for the userservice microservices4vaadin_userservicedb needs to be added by hand in MySQL.

##Deployment:

  • The project could be deployed to a rancher stack using the given rancher-docker-compose.yml. The databases from above also here need to be added manually, here within the execute shell of the MySQL-container. Rancher stack

  • If all works fine (services might need to be restarted) you should see the this landing page: Landing page Initial test credentials then are [email protected]/quert6.

  • Fingers crossed.. Finally the Vaadin UI should show up: Vaadin UI

microservices4vaadin's People

Contributors

khauser avatar alejandro-du avatar

Stargazers

Florian Ziller avatar

Watchers

James Cloos avatar Florian Ziller 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.