This project is used for training of Spring-Cloud training.
Configuration for project is located in rakk/spring-cloud-training-configuration repository.
This project contains spring-boot based services:
- core service:
- lending-service - business service responsible for taking loan
- securities-service - backend business service responsible for debt management
- entry point
- lending-ui - spring-boot based UI for
- ui - nodejs based (very simple) web app, uses core services as backend
- routing-service - routing/proxy server based on zuul server
- tools:
- discovery-service - discovery service based on Netflix Eureka server
- config-server - delivers configuration for all services, by default uses rakk/spring-cloud-training-configuration repository
- admin-service - administrative tool, allows us to view logs, change configuration on the fly etc.
- tracing-service - tracing for distributed system
During the training we will use branches:
- live-coding-communication (starting point for the live coding)
- live-coding-routing
- live-coding-security
- live-coding-final (code after live coding)
Install Java JDK 8/9 and Node 8.9.4
Project can be build by maven wrapper so maven installation can be skipped.
cd %Homepath%\Desktop
git clone https://github.com/rakk/spring-cloud-training
git clone https://github.com/rakk/spring-cloud-training-configuration
This might take a while...
cd %Homepath%\Desktop\spring-cloud-training
git checkout -b live-coding-routing origin/live-coding-routing
git checkout -b live-coding-security origin/live-coding-security
git checkout -b live-coding-final origin/live-coding-final
git checkout -b live-coding-communication origin/live-coding-communication
cd %Homepath%\Desktop\spring-cloud-training && mvnw clean package
This might take a while...
cd %Homepath%\Desktop\spring-cloud-training\discovery-service && mvnw spring-boot:run
and open in browser port: 9021 => http://localhost:9021
cd %Homepath%\Desktop\spring-cloud-training\config-service && mvnw spring-boot:run
and open in browser port: 9020 => http://localhost:9020/lending-service/develop
cd %Homepath%\Desktop\spring-cloud-training\tracing-service && mvnw spring-boot:run
and open in browser port: 9022 => http://localhost:9022
cd %Homepath%\Desktop\spring-cloud-training\admin-service && mvnw spring-boot:run
and open in browser port: 9024 => http://localhost:9024
Rest of core projects requires both config-service and discovery-service. It is important to be sure that they are up and running.
❗ master branch only ❗
cd %Homepath%\Desktop\spring-cloud-training\oauth2-security-server && mvnw spring-boot:run
and open in browser port: 9030 => http://localhost:9030/uaa/login
cd %Homepath%\Desktop\spring-cloud-training\securities-service && mvnw spring-boot:run
and open in browser port: 9001 => http://localhost:9001/info
cd %Homepath%\Desktop\spring-cloud-training\lending-service && mvnw spring-boot:run
and open in browser port: 9000 => http://localhost:9000/info
cd %Homepath%\Desktop\spring-cloud-training\lending-ui && mvnw spring-boot:run
and open in browser port: 9002 => http://localhost:9002
cd %Homepath%\Desktop\spring-cloud-training\routing-service && mvnw spring-boot:run
and open in browser port: 9090 => http://localhost:9090/routes
npm install http-server -g
cd %Homepath%\Desktop\spring-cloud-training\ui && http-server
and open in browser port: 8080 => http://localhost:8080
cd %Homepath%\Desktop\spring-cloud-training\ui && http-server -p 8090
and open in browser port: 8090 => http://localhost:8090
cd ~/Desktop
git clone https://github.com/rakk/spring-cloud-training
git clone https://github.com/rakk/spring-cloud-training-configuration
This might take a while...
cd ~/Desktop/spring-cloud-training
git checkout -b live-coding-routing origin/live-coding-routing
git checkout -b live-coding-security origin/live-coding-security
git checkout -b live-coding-final origin/live-coding-final
git checkout -b live-coding-communication origin/live-coding-communication
cd ~/Desktop/spring-cloud-training && ./mvnw clean package
This might take a while...
cd ~/Desktop/spring-cloud-training/discovery-service && ./mvnw spring-boot:run
and open in browser port: 9021 => http://localhost:9021
cd ~/Desktop/spring-cloud-training/config-service && ./mvnw spring-boot:run
and open in browser port: 9020 => http://localhost:9020/lending-service/develop
cd ~/Desktop/spring-cloud-training/tracing-service && ./mvnw spring-boot:run
and open in browser port: 9022 => http://localhost:9022
cd ~/Desktop/spring-cloud-training/admin-service && ./mvnw spring-boot:run
and open in browser port: 9024 => http://localhost:9024
Rest of core projects requires both config-service and discovery-service. It is important to be sure that they are working fine.
❗ master branch only ❗
cd ~/Desktop/spring-cloud-training/oauth2-security-server && ./mvnw spring-boot:run
and open in browser port: 9030 => http://localhost:9030/uaa/login
cd ~/Desktop/spring-cloud-training/securities-service && ./mvnw spring-boot:run
and open in browser port: 9001 => http://localhost:9001/info
cd ~/Desktop/spring-cloud-training/lending-service && ./mvnw spring-boot:run
and open in browser port: 9000 => http://localhost:9000/info
cd ~/Desktop/spring-cloud-training/lending-ui && ./mvnw spring-boot:run
and open in browser port: 9002 => http://localhost:9002
cd ~/Desktop/spring-cloud-training/routing-service && ./mvnw spring-boot:run
and open in browser port: 9090 => http://localhost:9090/routes
npm install http-server -g
cd ~/Desktop/spring-cloud-training/ui && http-server
and open in browser port: 8080 => http://localhost:8080
cd ~/Desktop/spring-cloud-training/ui && http-server -p 8090
and open in browser port: 8090 => http://localhost:8090
❗ Local OAuth Server is only on master branch ❗
Predefined OAuth test users created for this app:
- admin - has role ADMIN
- login:
admin
- password:
admin
- login:
- user - has role USER
- login:
user
- password:
password
- login:
❗ Credentials needed on live-coding-security and live-coding-final branches ❗