Skip to content

PUC-DISCIPLINAS/kv-grpc-gamoch-ianbandrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo
About    |    Client commands    |    Run with go command    |    Run with Docker    |    License

About

Simple gRPC Key–value storage application

Client commands

put [key] [value] - Put a entry

get [key] - Get value of key

getAllKeys - Get all keys

Commands were made with Cobra

Run with go command

Server - Navigate to folder

cd server

Server - Install dependencies

go mod vendor

Server - Run application

go run main.go

Client - Navigate to folder

cd client

Client - Install dependencies

go mod vendor

Client - Run application

go run main.go

Run with Docker

Authenticate to GitHub Packages

echo <READ_PACKAGES_TOKEN> | docker login docker.pkg.github.com -u <USERNAME> --password-stdin

Pull Docker images

docker pull docker.pkg.github.com/puc-disciplinas/kv-grpc-gamoch-ianbandrade/server
docker pull docker.pkg.github.com/puc-disciplinas/kv-grpc-gamoch-ianbandrade/client

Rename Docker images

docker tag docker.pkg.github.com/puc-disciplinas/kv-grpc-gamoch-ianbandrade/server kv-server
docker tag docker.pkg.github.com/puc-disciplinas/kv-grpc-gamoch-ianbandrade/client kv-client

Run server

docker run -it --rm --net host kv-server

Run client

docker run -it --rm --net host kv-client

License

This project is under the MIT license. See the file LICENSE for more details.