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

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:8888.