Skip to content

melardev/Java_SpringCloud_Eureka_Zuul_Config_Kafka_OAuth2Jwt_ProxyDiscovery_RestCrud

Repository files navigation

Table of Contents

Introduction

Micro-service application with Eureka, Config Server, Zuul, Proxy based on DiscoveryClient Bean, Kafka(producer-consumer), and Rest Crud. You have to run a kafka on localhost:9092 before launching this instances, since the microservices rely on config server and eureka. The order of launch should be:

  1. Eureka
  2. Config Server
  3. OAuth Authorization Server that issues JWT
  4. Todo Service (It is also a OAuth Resource Server)
  5. Proxy Service
  6. Mail Service
  7. Zuul Gateway Service

The only requirement are the first two, the others you can launch them in any order, but I strongly recommend you to launch Gateway service the last, otherwise you may have to wait Zuul to fetch from Eureka the next time and hopefully the other microservices he routes through are now available.

I included the requests.postman_collection.json file which you can import into postman and issue the requests by yourself.

About Key pair

This project uses Asymmetric cryptography.

  • To create the private key used to sign the keys by the oauth-server I did: keytool -genkeypair -alias melardev -keyalg RSA -keysize 2048 -keystore private.jks -validity 3650
  • export public key from jks, this will be used by resource-server to validate tokens without having to contact the oauth-server keytool -list -rfc --keystore private.jks | openssl x509 -inform pem -pubkey -noout -out public.pem

Full-stack Applications

Simple Crud

Server side implementations

Microservices

Client side implementations

The next come are

  • Angular NgRx-Store
  • Angular + Material
  • React + Material
  • React + Redux + Material
  • Vue + Material
  • Vue + Vuex + Material
  • Ember
  • Vanilla javascript

Crud + Pagination

Server side implementations

MicroServices

The next come are

  • NodeJs Express + Knex
  • Flask + Flask-Restful
  • Laravel + Fractal
  • Laravel + ApiResources
  • Go with Mux
  • AspNet Web Api 2
  • Jersey
  • Elixir

Client side implementations

The next come are

  • Angular NgRx-Store
  • Angular + Material
  • React + Material
  • React + Redux + Material
  • Vue + Material
  • Vue + Vuex + Material
  • Ember
  • Vanilla javascript

Auth Jwt + Crud

Server side implementations

Auth Jwt + Crud + Pagination

Server side implementations

Client side implementations

E-commerce

Server side implementations

The next to come are:

  • Spring Boot + Spring Data Hibernate + Kotlin
  • Spring Boot + Jax-RS Jersey + Hibernate + Kotlin
  • Spring Boot + mybatis
  • Spring Boot + mybatis + Kotlin
  • Asp.Net Web Api v2
  • Elixir
  • Golang + Beego
  • Golang + Iris
  • Golang + Echo
  • Golang + Mux
  • Golang + Revel
  • Golang + Kit
  • Flask + Flask-Restful
  • AspNetCore + NHibernate
  • AspNetCore + Dapper

Client side implementations

This client side E-commerce application is also implemented using other client side technologies:

Blog/CMS

Server side implementations

Client side

The next come are

  • Angular NgRx-Store
  • Angular + Material
  • React + Material
  • React + Redux + Material
  • Vue + Material
  • Vue + Vuex + Material
  • Ember

Social media links

  • Youtube Channel I publish videos mainly on programming
  • Blog Sometimes I publish the source code there before Github
  • Twitter I share tips on programming
  • Instagram I share from time to time nice banners