Skip to content

mmj-dev-git/grpc_with_envoy_and_apisix

Repository files navigation

##Flutter grpc!

#Base project to test grpc call with envoy and apiSix proxy

#To run grpc call through envoy proxy

  1. In IDE terminal start the Node.js gRPC service, which is set to listen on port :9017.
$ node server.js &
  1. In IDE terminal run the Envoy proxy. The envoy.yaml file configures Envoy to listen to browser requests at port :9081, and forward them to port :9017
$ docker run -d -v "$(pwd)"/envoy.yaml:/etc/envoy/envoy.yaml:ro \
    -p 9081:9081 -p 9901:9901 envoyproxy/envoy:v1.22.0

Now Launch Flutter app in chrome (web) and click on Test Hello, you will observe the following output.

Hello! Mohsin Javed

#To run grpc call through apisix proxy

  1. In IDE terminal start the Node.js gRPC service, which is set to listen on port :9017.
$ node server.js &
  1. In IDE terminal navigate to the "example" folder of the apisix_docker
cd apisix_docker/example
  1. Now, we can start all modules with docker-compose
$ docker-compose -p docker-apisix up -d

If you check you Docker Desktop, you should see the list of running containers.

  1. In order to open Dashboard running locally, you should visit this url:
http://localhost:9000/user/login

And enter username:admin , password:admin

  1. After successful login, welcome screen should be opened. add route configuration here.

  2. After adding route configurations Now Launch Flutter app in chrome (web) and click on Test Hello.

About

Test project for grpc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published