springPlayground

Sample spring-boot projects for building REST Api

Stars
2
Committers
5

Spring Boot Applications

This repo contains sample mvn spring-boot projects for:-

  • spring-mongodb contains Spring-Bot JPA and Mongo Repository.
  • spring-h2-sample H2 in memory DB sample with spring boot .
  • spring-security Spring security with in memory users and Http basic auth for REST Api's.
  • spring-DBAuth Spring security with DB integrated Http basic auth for REST Apis's.
  • spring-DBAuth-jwt Spring security with DB integrated JWT token auth for REST Apis's.
  • spring-cloud Sample spring boot microservices with eureka server and eureka client with api-gateway.
  • spring-kafka Spring Cloud event driven example using kafka asa event bus.
  • spring-boot-gradle Sample spring boot project with gradle.
  • config Spring configurations folder.
  • ELK-Stack ELK stack for logs.
  • Logging Spring boot logging sample.

Spring-boot-gradle

Sample spring boot project with gradle:-

Spring-Kafka

Sample For spring cloud streams using apache kafka as event bus:-
  • kafka-server Kafka and zookeeper docker-compose container.
  • kafka-consumer Spring cloud streams cloud consumer consuming messages on the topic from kafka.
  • kafka-consumer Spring cloud streams cloud producer producing messages on the topic to kafka.

Spring Cloud

Sample Eureka server with eureka clients microservices and hystrix dashboard for the fallback and monitoring:-

Spring Boot MongoDB

Sample CURD operations with MongoRepository for:-
  • Users Documenet
  • Roles Document
  • Authorities Document

Spring Boot H2 Sample

Spring-boot h2 in memory persistant DB sample for:
  • User Table
  • Role Table
  • Authorities Table

Spring Boot security in memory http auth

Spring security with in memory authentication with basic http auth:-
  • In memory user with fixed roles and credential's for authentication with basic http auth.

Spring Boot security with DB auth with Basic Http auth

Spring boot with mongo db authentication with Basic Http auth includes:-
  • Users with credential's authentication from mongo DB.
  • Roles based route authentication.
  • Permission based route authentication.

Spring Boot security with DB auth with JWT token authentication

Spring boot with mongo db authentication with JWT token Authentication for the routes. It includes:-
  • Users with credential's authentication from mongo DB.
  • Login and signup route open to all.
  • Token based authentication for all the remaining routes.