/go-repository-pattern

Implementation example of the repository design pattern

Primary LanguageGo

Repository Pattern Example

Run api

go run main.go run

Database Schema

go run main.go migrate

Testing

go test -cover ./...
go clean -testcache 
go test  ./... -coverprofile=coverage.out
go tool cover -html=coverage.out

Start Mysql Services

docker-compose up -d

Delete

docker-compose down