https://github.com/surzia/collab-realtime-doc
Build a gRPC server with Golang, React, Envoy and Docker
https://github.com/surzia/collab-realtime-doc
docker envoy go grpc react
Last synced: about 2 months ago
JSON representation
Build a gRPC server with Golang, React, Envoy and Docker
- Host: GitHub
- URL: https://github.com/surzia/collab-realtime-doc
- Owner: surzia
- Created: 2022-07-07T15:11:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T13:52:24.000Z (over 3 years ago)
- Last Synced: 2025-04-09T08:22:46.584Z (12 months ago)
- Topics: docker, envoy, go, grpc, react
- Language: JavaScript
- Homepage: https://juejin.cn/post/7119139195649523725/
- Size: 7.66 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
A simple gRPC server built by **Go** + **React** + **Docker** + **Envoy**

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

## Deployment
[](https://heroku.com/deploy)
