Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

jcmellado/cloud-greeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud sample application

Install

Download the projects:

git clone https://github.com/jcmellado/cloud-greeter.git
git clone https://github.com/jcmellado/cloud-greeter-config.git

Running on Local Machine

In order to get this working you will need Java and Maven properly installed.

Change the current working directory:

cd cloud-greeter/modules

Run the following commands in different terminal windows.

Start up Config server:

cd cloud-greeter-config
mvn spring-boot:run "-DCLOUD_GREETER_CONFIG_PATH=../../../cloud-greeter-config"

Start up Eureka:

cd cloud-greeter-eureka
mvn spring-boot:run

Start up Greeter Service (two or more instances):

cd cloud-greeter-service
mvn spring-boot:run "-DCLOUD_GREETER_SERVICE_PORT=8200"
mvn spring-boot:run "-DCLOUD_GREETER_SERVICE_PORT=8201"

Start up Greeter API Gateway (two or more instances):

cd cloud-greeter-api
mvn spring-boot:run "-DCLOUD_GREETER_API_PORT=8300"
mvn spring-boot:run "-DCLOUD_GREETER_API_PORT=8301"

Start up Zuul:

cd cloud-greeter-zuul
mvn spring-boot:run

Start up Turbine:

cd cloud-greeter-turbine
mvn spring-boot:run

Endpoints

The following endpoints will be available:

Releases

No releases published

Packages

No packages published

Languages