- Service User : https://github.com/fajarcandraaa/implement-gRpc-microservice-service-user
- Service Book : https://github.com/fajarcandraaa/implement-gRpc-microservice-service-book
- Protobank : https://github.com/fajarcandraaa/implement-gRpc-microservice-protobank
STEP 1 :We need to clone Service UserSTEP 2 :Setup the environment in.envlikeenv.exampleaccording to the settings on your localhostSTEP 3 :Run command on project's terminal :go mod tidyandgo mod vendorto constructs a directory named vendor in the main module's root directory that contains copies of all packages needed to support builds and tests of packages in the main moduleSTEP 4 :Run commandgo run main.goas usualySTEP 5 :Clone Service BookSTEP 6 :RepeatSTEP 2untilSTEP 4STEP 7 :Dont forget to doSTEP 2untilSTEP 3in this Orchestrator ServicesSTEP 8 :Execute commandgo run main.go(again) in this Orchestrator Services
-
URL : {host}/user/create
- Method : POST
- Body : { "email" : "", "name" : "", "username" : "", "password" : "" }
- Body type : json
-
URL : {host}/user/:id/find
- Method : GET
- Path params : id
-
URL : {host}/book/add
- Method : POST
- Body : { "author" : "", "title" : "" }
- Body type : json
-
URL : {host}/book/:id/find
- Method : GET
- Path params : id
