grpc-web-demo
Dockerized Go microservices and their envoy proxies for a flow which showcases gRPC for Web Clients. Check the medium story!!!
File Explorer
Download Latest Version (.zip)- postgres.go
- catalog.pb.go
- catalog.proto
- catalog_grpc.pb.go
- build_image.sh
- Dockerfile
- envoy.yaml
- build_image.sh
- Dockerfile
- main.go
- build_image.sh
- Dockerfile
- envoy.yaml
- mongo.go
- offer.pb.go
- offer.proto
- offer_grpc.pb.go
- build_image.sh
- Dockerfile
- main.go
- catalog_client.go
- offer_client.go
- utils.go
- build_image.sh
- Dockerfile
- envoy.yaml
- postgres.go
- order.pb.go
- order.proto
- order_grpc.pb.go
- build_image.sh
- Dockerfile
- main.go
- .env
- .env.local
- .gitignore
- all.sql
- diagram.png
- docker-compose.yml
- genarate-pb.sh
- go.mod
- go.sum
- LICENSE
- local.yml
- mongo-init.js
- README.md
- start-local.sh
- ui.gif
# Installation Guide
1. Get the code
git clone https://github.com/uid4oe/grpc-web-demo
Downloads the entire project code from GitHub to your computer.
cd grpc-web-demo
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker network create grpc-web-demo-alva-net
Type this command into your terminal and run it.
docker-compose up -d
Runs the command against the services defined in the compose file.
docker compose --file local.yml up -d
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Go
MediumPrerequisites
go build ./...
Compiles the Go program into an executable.
go run .
Runs the Go program directly without a separate build step.
If the build finishes without errors, it worked. If you used go run ., check the terminal output.
// repository documentation
Was this content helpful?
(0 ratings)
