- 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.env
likeenv.example
according to the settings on your localhostSTEP 3 :
Run command on project's terminal :go mod tidy
andgo mod vendor
to 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.go
as usualySTEP 5 :
Clone Service BookSTEP 6 :
RepeatSTEP 2
untilSTEP 4
STEP 7 :
Dont forget to doSTEP 2
untilSTEP 3
in 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