Cryptocurrency upvote microservice using golang and gRPC
Versions I've used:
- Go 1.18.3
- MongoDB 5.0.9
- Protoc 3.6.1
Clone the repository
$ git clone https://github.com/marcioecom/grpc-go.git
Access the project folder, and download the Go dependencies
$ go get ./...
$ docker-compose up -d
Body:
{
"name": "BTC"
}
Response:
{
"crypto": {
"id": "62e212efafcd6a39f91a9c33",
"name": "BTC"
}
}
Response:
{
"crypto": {
"id": "62e1e29b17ffc1b9e583c3c1",
"name": "BTC",
"up": 4,
"down": 1,
"total": 3
}
}
Response:
[
{
"id": "62e212efafcd6a39f91a9c33",
"name": "BTC",
"up": 4,
"down": 1,
"total": 3
},
{
"id": "62e21310afcd6a39f91a9c34",
"name": "ETH",
"up": 2,
"down": 1,
"total": 1
}
]
Response:
{
"ok": true
}
Response:
{
"ok": true
}