There are two microservices in this demo.
- Webapp (API Gateway)
- BMI Calculator (computing service)
- 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)
- Get the bmi demo's code
git clone https://github.com/ServiceComb/ServiceComb-Java-Chassis
cd ServiceComb-Java-Chassis/samples
- 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)
- Visit the services via http://127.0.0.1:8888.