a fake donut store built using grpc and sqlite
pull the docker container
docker pull ghcr.io/s1ntaxe770r/donut-store:lateststart the service
docker run -p 5050:5050 9052:9052 -d donut-store:latestto test the service install grpcurl
go install github.com/fullstorydev/grpcurl/cmd/grpcurlgrpcurl -plaintext localhost:5050 DonutShopsample response
DonutShop.GetDonut
DonutShop.GetDonuts
DonutShop.GetVersion
DonutShop.MakeDonutgrpcurl -plaintext localhost:5050 DonutShop/GetDonuts sample response
{
"donuts": [
{
"name": "bagel",
"price": 32,
"image": "https://none.com/bagel",
"id": "1"
},
{
"name": "glazed donut",
"price": 32,
"image": "https://none.com/bagel",
"id": "3"
},
]
}grpcurl -d '{"name":"bagel"}' -plaintext localhost:5050 DonutShop/GetDonutsample response
{
"name": "bagel",
"price": 32,
"image": "https://none.com/bagel",
"id": "1"
}grpcurl -d '{}' -plaintext localhost:5050 DonutShop/GetVersionsample response
{
"number": "v0.1"
}grpcurl -d '{"name":"bagel","price":32,"image":"https://none.com/bagel","id":"001"}' -plaintext localhost:5050 DonutShop/MakeDonut{
"name": "bagel"
}curl http://localhost:9092/metrics