tree: f5899e70e74c1e6e12b37fe610db3dde7eb6979d [path history] [tgz]
  1. calculator/
  2. webapp/
  3. pom.xml
  4. README.md
samples/bmi/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

Quick Start(Linux)

  1. Run the service center
wget https://github.com/ServiceComb/service-center/releases/download/0.1.1/service-center-0.1.1-linux-amd64.tar.gz
tar xvf service-center-0.1.1-linux-amd64.tar.gz
(cd service-center-0.1.1-linux-amd64; bash start.sh)
  1. Get the bmi demo's code
git clone https://github.com/ServiceComb/ServiceComb-Java-Chassis
cd ServiceComb-Java-Chassis/samples
  1. Run microservices
  • Run the BMI calculator service
(cd bmi/calculator; mvn spring-boot:run)
  • Run the webapp service
(cd bmi/webapp; mvn spring-boot:run)
  1. Visit the services via http://127.0.0.1:8889.