Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivamka1/prime-grpc-scala
https://github.com/shivamka1/prime-grpc-scala
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/shivamka1/prime-grpc-scala
- Owner: shivamka1
- Created: 2021-07-17T09:38:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-19T16:11:16.000Z (over 3 years ago)
- Last Synced: 2025-01-13T06:20:59.418Z (6 days ago)
- Language: Scala
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prime-grpc-scala
## Dev
Lagom plugin exposes single `runAll` command to start all services besides service locator and service gateway. All the APIs could be reached `@localhost:9000`.
```
$ sbt runAll
```## Deploy
1. Install minikube
```sh
$ ./deploy/scripts/setup-minikube-for-linux.sh
```2. Publish docker images
```sh
$ sbt prime-generator/docker:publishLocal -Ddocker.username=iamsmkr -Ddocker.registry=index.docker.io
$ sbt prime-proxy-impl/docker:publishLocal -Ddocker.username=iamsmkr -Ddocker.registry=index.docker.io
```3. Create application secret
```sh
$ kubectl create secret generic application-secret --from-literal=secret="$(openssl rand -base64 48)"
```4. Apply k8s manifests
```sh
$ kubectl apply -f deploy/k8s/config-map.yml
$ kubectl apply -f deploy/k8s/prime-generator.yml
$ kubectl apply -f deploy/k8s/prime-proxy.yml
```## Usage
```sh
$ curl --header 'Host: primeservice.com' $(sudo -E minikube ip)/prime/23
```