blockchain-api

module
v0.0.0-...-335c537 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: Apache-2.0

README ΒΆ

Github CI/CD Repository Top Language Scrutinizer Code Quality GitHub go.mod Go version Codacy Grade Github Repository Size Github Open Issues Lines of code GitHub last commit License GitHub contributors

Blockchain API

API-server for blockchain indexes

Solution notes

  • πŸ”± clean architecture (handler->service->repository)
  • πŸ“– standard Go project layout (well, more or less 😊)
  • πŸ’Ώ github CI/CD + docker compose + Makefile included
  • βœ… handler tests with mocks included
  • ❀ Swagger auto-generated on make generate included

HOWTO

  • πŸƒβ™‚ run app in docker-compose with make dc
  • πŸ§ͺ run tests with make test
  • πŸͺ™ generate contract from abi file with make abigen
  • 🌻 run linter with make lint

A picture is worth a thousand words

Directories ΒΆ

Path Synopsis
cmd
app
Package classification Blockchain API.
Package classification Blockchain API.
internal
abi
app/handlers/handlerblock
Package handlerblock is a generated GoMock package.
Package handlerblock is a generated GoMock package.
app/handlers/handlergroup
Package handlergroup is a generated GoMock package.
Package handlergroup is a generated GoMock package.
app/handlers/handlerindex
Package handlerindex is a generated GoMock package.
Package handlerindex is a generated GoMock package.
app/services/serviceblock
Package serviceblock is a generated GoMock package.
Package serviceblock is a generated GoMock package.
app/services/servicegroup
Package servicegroup is a generated GoMock package.
Package servicegroup is a generated GoMock package.
app/services/serviceindex
Package serviceindex is a generated GoMock package.
Package serviceindex is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL