API for manage transactions, payments and accounts
Powered by:
IrisGo - https://github.com/kataras/iris
GORM - https://github.com/jinzhu/gorm
Testify - https://github.com/stretchr/testify
main.go -> Application bootstraper
Dockerfile
docker-compose.yml
app/
|__http/
|____ controllers/ -> All application controllers
|____ resources/ -> Requests/Responses representations
|__ adapters/ -> Adapters for models/resources conversion and vice-versa
|__ models/ -> Database entities
|__ repositories/ -> Application repositories
|__ services/ -> Application services
infra/ -> Application infrastructure code
-
Clone the repository
-
Run the command:
docker-compose up --build
-
For database check with external tool, connect on port 3307, exposed by the container. No volumes were created, but can be adjusted on docker-compose.yml if needed
-
Install stretchr/testify:
go get github.com/stretchr/testify
-
Run go test -v tests/*/*.go