/spring-boot-microservices-sample

Sample project to show how to build microservices by using Kotlin, Spring Boo and Gradle

Primary LanguageKotlin

Project description

Sample project to show how to build microservices by using Kotlin, Spring Boo and Gradle

Components

  • API Gateway
  • Discovery Server
  • Resource Server
  • Auth Server

How to start

Start Discovery Server

$ SPRING_PROFILES_ACTIVE=peer1 ./gradlew :discovery-server:clean :discovery-server:bootRun

$ SPRING_PROFILES_ACTIVE=peer2 ./gradlew :discovery-server:clean :discovery-server:bootRun

Start Resource Server

$ SPRING_PROFILES_ACTIVE=peer1 ./gradlew :resource-server:clean :resource-server:bootRun

$ SPRING_PROFILES_ACTIVE=peer2 ./gradlew :resource-server:clean :resource-server:bootRun

Start API Gateway

$ ./gradlew :api-gateway:clean :api-gateway:bootRun

Start Auth Server

Please check the Auth Server README

Verify