Skip to content

MatiasAdrian4/shopping_cart_in_golang_with_go_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopping Cart in Golang With Go-Kit

Introduction

A simple shopping cart developed in Golang, based on addsvc.

Installation

Clone Repository

git clone https://github.com/MatiasAdrian4/shopping_cart_in_golang_with_go_kit.git

Compile Protobuf

protoc pb/shopping_cart.proto --go_out=plugins=grpc:.

Create Go Module

go mod init shopping_cart_in_golang_with_go_kit

Build

go build cmd/server/main.go

Run Server

go run cmd/server/main.go

Run Client (Only add_cart and add_item services)

go run cmd/client/main.go <transport_protocol> <service_name> <arguments>
Example HTTP
go run cmd/client/main.go http add_cart 5
Example GRPC
go run cmd/client/main.go grpc add_item 2 ball 750

Recommended tools to consume the services

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages