Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Budget

A service to keep track of people, catagory and transactions data

Endpoints

Get Requests: /getCategories /getTransactions

/getPeople - Fuzzy name search

curl --location --request GET '104.162.136.185/getPeople' --header 'Content-Type: application/json' --data-raw '{
    "name": "ken"
}'

/getTotalTransactionAmount - To turn on concurrency set isParallel to true

curl --location --request GET '104.162.136.185/getTotalTransactionAmount' --header 'Content-Type: application/json' --data-raw '{
    "isParallel": false
}'

Quick setup

run bash ./scripts/setup

Generate Protobuf

go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/knzou/Budget/proto
protoc -I ~/Desktop/Budget/proto ~/Desktop/Budget/proto/service.proto --go_out=plugins=grpc:./.go/src
protoc -I ~/Desktop/Budget/proto ~/Desktop/Budget/proto/date.proto --go_out=plugins=grpc:./.go/src

Best practices

Explicit dependencies No package level variables No func init

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages