https://github.com/kameshsampath/ci-google-translation-demo
A demo to show how to use gRPC and Google Translation API , and enable Drone CI to perform build/test and push image
https://github.com/kameshsampath/ci-google-translation-demo
demo drone envoy google-api google-api-client grpc-go grpc-web
Last synced: 29 days ago
JSON representation
A demo to show how to use gRPC and Google Translation API , and enable Drone CI to perform build/test and push image
- Host: GitHub
- URL: https://github.com/kameshsampath/ci-google-translation-demo
- Owner: kameshsampath
- License: apache-2.0
- Created: 2022-11-16T15:57:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T11:25:07.000Z (over 2 years ago)
- Last Synced: 2024-12-22T20:02:42.253Z (4 months ago)
- Topics: demo, drone, envoy, google-api, google-api-client, grpc-go, grpc-web
- Language: Go
- Homepage:
- Size: 10.8 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gRPC Lingua Greeter
A demo on how to use Google API with gRPC application with go based server and gRPC-web client
## Pre-requisites
- Docker for Desktop
- [k3d](https://k3d.io)
- Drone CLI
- node
- Google API Key to Access Translation API
- Node (if you want to try client)## Create Cluster and Registry
```shell
k3d registry create myregistry.localhost --port 5001
k3d cluster create --name=lingua-greeter-demos --registry-use k3d-myregistry.localhost:5001
```## Build Application
```shell
drone exec --trusted --env-file=.env
```## Deploy Application
```shell
kubectl apply -k k8s
```## Build Client
```shell
drone exec --trusted --env-file=.env --include="protoc-web"
```### Build JS
```shell
cd client/web
pnpm install
pnpm build
```>**NOTE**: If you don't have pnpm you can use npm or yarn
Open the index.html in browser to view the Translated Greetings.