There are two microservices in this demo.
- Webapp (API Gateway)
- BMI Calculator (computing service)
- Oracle JDK 1.8+
- Maven 3.x
- Gradle 4.x(Optional)
-
Run the service center
-
Get the bmi demo's code
git clone https://github.com/apache/servicecomb-java-chassis.git
cd servicecomb-java-chassis/samples- Run microservices
- via maven
- Run the BMI calculator service
(cd bmi/calculator; mvn spring-boot:run) - Run the webapp service
(cd bmi/webapp; mvn spring-boot:run)
- Run the BMI calculator service
- via gradle
- Install ServiceComb Java Chassis
mvn clean install -DskipTests
- Run the BMI calculator service
(cd bmi/calculator; gradle bootRun) - Run the webapp service
(cd bmi/webapp; gradle bootRun)
- Install ServiceComb Java Chassis
- Visit the services via http://127.0.0.1:8889.