GithubHelp home page GithubHelp logo

dergeorg / sks_reiseportal Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7.66 MB

#Java #Spring #JPA #Spring Cloud Eureka #Spring Cloud Gateway #Spring Cloud Loadbalancer #Spring Cloud config #vue-cli #vue-router #vue-material #axios #MariaDB

License: MIT License

Java 17.92% JavaScript 1.58% HTML 0.39% Vue 6.24% Shell 29.37% Batchfile 19.68% Roff 24.83%
vue spring springcloud-config springcloud-gateway spring-cloud-netflix springcloud-eureka microservices-architecture jpa java

sks_reiseportal's Introduction

all db

Gateway Server

Spring cloud Gateway with round-robbin Load Balancer strategy

For services:

  • Article Server
  • Stats Server
  • Sightseeing Server

Port

5555

Routes

Service Route
Articleserver http://localhost:5555/articleserver/ [article, articles, article/{id}]
Sightseeingserver http://localhost:5555/sightseeingserver/ [sightseeings, sightseeings/{id}]
Statsserver http://localhost:5555/statsserver/ [article/{id}, stats/month, stats/all, stat/{id}]

⚠️ Gateway is forwarding to http://localhost:/api/

Example for loadbalancing

When starting for example multiple Article Server (Ports: [8080, 8765]) and then do a request to the gateway on port 5555, than you will see that every call to the gateway will forward to the 2 server instances. 1. Request is on 8080, 2. request is on 8765, 3. on 8080 again, ....

⚠️ For Testing the loadbalancer, simply start the second instance of article server in intellij

Eureka Server

Service registry

For services:

  • Article Server
  • Stats Server
  • Sightseeing Server

Port

8761

Config Server

Manages all configs for all the microservices

Features

  • Article Server Config
  • Stats Server Config
  • Sightseeing Server Config
  • Money Server Config

Port

8888

Article Server

Manages all articles

Routes

article_routes

Features

  • Adding Article
  • Get Article (all, byID)

API

After starting the Server, you can view the API in Swagger - Article Server

Port

8080

Stats Server

Manages all the stats

Routes

stats_routes

Features

  • Adding Article
  • Get Stats (month, all, byID)
  • Count stats +1

API

After starting the Server, you can view the API in Swagger - Stats Server

Port

8071

Sightseeing Server

Manages all the sightseeing entrys

Routes

sightseeings_routes

Features

  • Get Sightseeing Entry (all, byID)

API

After starting the Server, you can view the API in Swagger - Sightseeing Server

Port

8061

Money Server

Manages the monthly payment Scheduling every Month once Cron: 1 48 13 19 * ?

Port

8051

Web App

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Port

8081

Customize configuration

See Configuration Reference.

sks_reiseportal's People

Contributors

dergeorg avatar hansseidel avatar

Watchers

 avatar  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.