PoC project to illustrate how to create polyglot APIs and Microservices using LoopBack and gRPC.
- Apps
- note-java: Java implementation of note encryption
- note-swift: Swift implementation of note translation
- note-loopback: Sample LoopBack application to demonstrate gRPC integration
- Tools
- grpc-swagger: Generate swagger spec from gRPC proto document and vice versa
- loopback-connector-grpc: LoopBack connector for gRPC services
- note-loopback (Node.js)
- note-java (Java)
- note-swift (Swift)
- note-mongo (MongoDB)
- openzipkin/zipkin (zipkin)
$ docker-compose up --build
Open your browser and point to http://localhost:3000/explorer to test drive:
- Create a new note with
POST /notes
. - The
note-loopback
microservice will request thenote-swift
microservice to translate the content (mockup). - The
note-loopback
microservice will request thenote-java
microservice to encrypt the content using JWE. - Tracing metrics are sent to zipkin server. The dashboard is available at http://localhost:9411.
- You can also run clients from the host, for example:
$ cd note-loopback
$ node client.js
or
$ cd note-java
$ java -cp ./target/note-1.0.0.jar com.ibm.apiconnect.demo.polyglot.NoteClient
Please follow instructions at https://github.com/kubernetes/minikube to install minikube
and kubectl
commands.
cd kubernetes
./create-k8s.sh