A simple gRPC server built by Go + React + Docker + Envoy
The easiest way to build the project with docker
docker compose build
or you can build it manually
- build backend go server
go build -o server .
- build frontend react
cd web npm run build
- dockerlize envoy proxy server
docker build -t grpc-starter-envoy:1.0 .
The easiest way, still start the project with docker
docker compose up -d
or you can start it manually
- after compiling, run envoy proxy server directly
docker run -dp 8000:8000 grpc-starter-envoy:1.0
- run the compiled go executable binary
or use go command
./server
go run main.go
- start react project
npm run start
After starting project, you can open browser http://localhost:3000 to see the final effect