andresjz / spring-cloud-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-cloud-demo

This repository contains microservices samples built using spring boot and spring cloud application development frameworks.

Projects :

Name Port Description
eureka-server 8080 Eureka service registration server
eureka-client-app1 8081 Eureka service discovery client registered with eureka-server
eureka-client-app2 8082 Eureka service discovery client registered with eureka-server
zuul-proxy 8085 Zuul reverse proxy server acting as reverse proxy pass to other microservices
config-server 8888 Configuration server acting as a hub for centralized configuration

Eureka Server Registration View :

eureka-service : http://localhost:8080/

eureka-server

How to run the project ?

  • Clone the repository
git clone https://github.com/AndresJz/spring-cloud-demo.git
  • Execute below script to build all the applications
cd spring-cloud-demo
./build.sh

or 
cd spring-cloud-demo
mvn clean package
  • Start the applications
cd spring-cloud-demo

cd  eureka-server
mvn spring-boot:run

cd eureka-client-app1
mvn spring-boot:run

cd eureka-client-app2
mvn spring-boot:run

cd zuul-proxy
mvn spring-boot:run

cd config-server
mvn spring-boot:run

Test the microservices in local :

# Standalone App

$ curl http://localhost:8081/

$ curl http://localhost:8082/


# Zuul proxy

$ curl http://localhost:8085/app1/


$ curl http://localhost:8085/app2/

About

License:MIT License


Languages

Language:Java 88.7%Language:Shell 6.4%Language:Dockerfile 4.9%