Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Body Mass Index(BMI) Calculator Microservice Demo

Architecture of BMI Calculator

There are two microservices in this demo.

  • Webapp (API Gateway)
  • BMI Calculator (computing service)

Prerequisite

  1. Oracle JDK 1.8+
  2. Maven 3.x
  3. Gradle 4.x(Optional)

Quick Start(Linux)

  1. Run the service center

    how to start service center

  2. Get the bmi demo's code

git clone https://github.com/apache/servicecomb-java-chassis.git
cd servicecomb-java-chassis/samples
  1. 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)
  • 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)
  1. Visit the services via http://127.0.0.1:8889.