Body Mass Index(BMI) Calculator Microservice Demo

Check this document for details explanations about this 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)

Precondition

see Precondition

Quick Start(Linux)

  • Run the service center

  • 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

      • Run the BMI calculator service
      cd bmi/calculator; gradle bootRun
      
      • Run the webapp service
      cd bmi/webapp; gradle bootRun
      
  • Visit the services via http://127.0.0.1:8889.