Example API built with:
- Echo as web framework
- testify for testing
- Mockery for mock generation
- go-playground/validator for input validation
Install go dependencies:
go mod vendor
Make sure you have mockery installed:
go install github.com/vektra/mockery/v2@v2.20.0
or
brew install mockery
brew upgrade mockery
Generate mocks:
make mocks
Generate swagger:
go install github.com/swaggo/swag/cmd/swag@latest
make docs
Create .env:
cp .env.example .env
make run
make test