This is a simple Micronaut Microservices configured using MicrostarterCLI 0.2.5. The Microservices consists of:
- Fruit Service.
- Vegetable Service
- Eureka Service Discovery Server.
- Spring Cloud Gateway.
run
> mc eureka -version 2.7.7 --javaVersion 11
First run
> mc init --name FruitService
Then, run:
> cd FruitService
> mc entity -e Fruit
Note: Ensure to select "No" in "Is Monolithic?" question, and configure "eureka" as localhost.
First run
> mc init --name VegetableService
Then, run:
> cd VegetableService
> mc entity -e Vegetable
Note: Ensure to select "No" in "Is Monolithic?" question, and configure "eureka" as localhost.
First, run:
mc gateway -version 2.7.7 --javaVersion 11
Second, Enter the Gateway directory:
> cd gateway
Run the following command twice to configure the routes of FruitService, and VegetableService
> mc gateway register