/grpcweb-proxy

Primary LanguageTypeScript

grpcweb-proxy - an integration and test suite for grpcweb and caddy

Tech used

Backend

  • Protobuf
  • Go server and client

Frontend

  • Protobuf
  • Yarn 1.x
  • Vite
  • TypeScript
  • Vanilla web page

Dependencies

  • Node 18x from here
  • Install Yarn 1.x from here
  • Install Protobuf Compiler For Linux/Mac from here

Tech Stack

  • node -v
    v18.6.0
  • yarn -v
    1.22.19
  • go version
    go version go1.18.4 linux/amd64

Usage

  1. Install yarn dependencies: cd front && yarn
  2. Generate protobuf defs for backend: make genback
  3. Generate protobuf defs for frontend: make genfront
  4. Run a backend service: make runserver
  5. Validate GRPC server availability using a direct GRPC link (no proxy): make runclient
  6. Optional: run caddy: caddy start
  7. Run envoy proxy: make runproxy
  8. Start the Web Browser: make runfront
  9. Open a web Browser with the proper address e.g. localhost:5137, press F12 to open a console and watch the network calls