API Restful in Golang where you can vote your favorite cryptocurrency
- Golang;
- Gin;
- Gorm;
- Postgres
- Docker;
- clone this repository
- install go, docker and docker-compose
- run docker-compose up -d && go run main.go
-
Examples:
-
GET:
[
{
"id": 1,
"name": "bitcoin",
"vote": 1,
"created": "2022-08-29T11:47:39.31198-03:00",
"updated": "2022-08-29T11:47:39.31198-03:00",
"deleted": null
}
]
- POST:
{
"name": "bitcoin"
}
- RANKING:
[
{
"Name": "bitcoin",
"Vote": 2
},
{
"Name": "ethereum",
"Vote": 1
}
]
Contatct me: