/Upvote-crypto

API Restful in Golang where you can vote your favorite cryptocurrency

Primary LanguageGo

Upvote Cryptocurrency

API Restful in Golang where you can vote your favorite cryptocurrency

  • Golang;
  • Gin;
  • Gorm;
  • Postgres
  • Docker;

How to Use

  • clone this repository
  • install go, docker and docker-compose
  • run docker-compose up -d && go run main.go

Endpoints

[
	{
		"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
	}
]

Any bugs or suggestions?

Contatct me:

Enjoy.