GithubHelp home page GithubHelp logo

duwab / open-source-gateway Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.73 MB

A complete open-source stack for microservices and API Gateway

Dockerfile 2.20% Shell 2.86% JavaScript 12.77% HTML 4.91% Vue 10.52% FreeMarker 45.00% CSS 21.74%

open-source-gateway's Introduction

Open Source µservices with API Gateway


                        VueJS
                          |
                     -------------
                     |           |
  postgre  -----  Keycloak      Kong  -----  postgre
                 (+adminer)  (+adminer)
                                 |
                          ------------------------------------------
                          |            |            |              |
                        nodeJS        mock         go1  <-gRPC->  go2

Base projects

Dependencies

Service Dependencies
VueJS
  • url API (kong)
  • url OpenID server
  • Callback for standard Code Flow (keycloak adds guard then read+send code to get token)
Keycloak
  • 1 realm (per site), with multiple providers
  • Client for VueJS
  • Client for Kong
  • Build with custom theme
  • Seed: demo user, admin user
Kong
  • oidc plugin
  • plugin "instance" with Keycloak url + token (should be same as front)
  • Routings to µservices
µservices
  • network aliases between each other
  • handle possible access by API Gateway

This should give the big picture (maybe think adding nginx to "mock" VPC entry point)

Then other µservices are supposed to be added grouped by projects into submodules (they should work independently of all of this)

Use cases

  • Projects bootstraping
  • Day-to-day Development
  • Testing (e2e) and QA environments setup
  • Production recovery/re-install

Getting started

docker compose up    # details to init in start.sh
cd apps/vuejs-demo
npm run serve

Objectives

  • Project init made simple: git clone && docker compose up && curl http://localhost:8080
  • Project update made simple:
    • git pull && migrate
    • git pull && restore
  • Submodules as solutions containing multiple µservices
    • Demo gRPC with 2 go services
    • Doc to add another service
    • Update made simple (project/submodule level):
      • migrate
      • restore
  • Structure by solutions (Gateway, solution1(go1, go2), solution2(submodule))

open-source-gateway's People

Contributors

brsalzano avatar d4rkstar avatar nazuzma avatar tsadimas avatar rishavanand avatar

Watchers

Antoine D. 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.