https://github.com/ashwin-rajeev/golang-grpc-app
A simple gRPC application to query key/value from SQLite database table.
https://github.com/ashwin-rajeev/golang-grpc-app
database golang golang-application grpc grpc-go sqlite sqlite3
Last synced: 3 months ago
JSON representation
A simple gRPC application to query key/value from SQLite database table.
- Host: GitHub
- URL: https://github.com/ashwin-rajeev/golang-grpc-app
- Owner: Ashwin-Rajeev
- Created: 2021-08-17T14:11:30.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T14:20:11.000Z (almost 5 years ago)
- Last Synced: 2025-02-22T19:30:28.596Z (over 1 year ago)
- Topics: database, golang, golang-application, grpc, grpc-go, sqlite, sqlite3
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Golang gRPC Application with SQLite
A simple gRPC application to query key/value from SQLite database table.
## steps to execute
#### 1. Install the protocol compiler plugins for Go using the following commands:
```bash
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
```
#### 2.Update your PATH so that the protoc compiler can find the plugins:
```bash
$ export PATH="$PATH:$(go env GOPATH)/bin"
```
#### 3. start grpc server
```bash
go run grpc-server/main.go
```
#### 4. start grpc client
```bash
go run grpc-client/main.go
```
## Sample Output
```
2021/07/03 22:52:25 ******************* Student details *******************
2021/07/03 22:52:25 Student ID : 1
2021/07/03 22:52:25 Student Name : Liana Kim
2021/07/03 22:52:25 Student Code : 0001
2021/07/03 22:52:25 Student Program : Bachelor
```