ekudinov / grpc-test

Project for test grpc-web (angular) and grpc (go-kit) via microservices communications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-test

Project for test grpc-web and grpc via microservices communications.

This project has two parts: backend(go1.14) and frontend (angular10).

Interaction diagram

GitHub Logo

Tools and technologies:

  1. https://github.com/go-kit/kit GitHub - programming toolkit for building microservices

  2. https://github.com/metaverse/truss GitHub - boilerplate code generation for go-kit

  3. https://github.com/envoyproxy/envoy GitHub - api gateway

  4. https://github.com/grpc/grpc-go GitHub - go grpc

  5. https://github.com/ngx-grpc/ngx-grpc GitHub - grpc-web for angular

  6. Docker, docker-compose

How run project

  1. docker-compose up -d
  2. For test backend you must create cli client command make client in backend/history and backend/calculator
  3. Checking: ./client add 4 6 must return Response result:10 and ./client all -> Response result for get all:[id:"54760c28-d5cd-4c5b-a3a7-89e69fc705e2" name:"add" a:4 b:6 result:10 time:"2020-09-03 03:45:48.006184786 +0000 UTC m=+443.824024003" ]
  4. In front/grpc-web/ directory ng serve and go to http://localhost:4200/

GitHub Logo

GitHub Logo

GitHub Logo

About

Project for test grpc-web (angular) and grpc (go-kit) via microservices communications.


Languages

Language:TypeScript 74.3%Language:Go 14.4%Language:HTML 5.1%Language:JavaScript 3.1%Language:Makefile 1.5%Language:Dockerfile 1.3%Language:CSS 0.3%