Api example in Go with go-gonic, gorm and testify
- Create
.env
and.env.testing
from.env.example
- Launch
postgresql
and create databaseDB_NAME
in.env
or/and.env.testing
- For functional test
go test -v ./test/functional/*.go
- For unit test
go test -v ./test/unit/*.go
- For launch server
go run main.go
- Go
- Gin-Gonic
- Gorm
- CORS
- Testify
- GolintCI-Lint