Skip to content

Api example in Go with go-gonic, gorm and testify

License

Notifications You must be signed in to change notification settings

An0nYm0u5101/api-go-example

 
 

Repository files navigation

Api-Go-Example

Api example in Go with go-gonic, gorm and testify

Before Usage

  • Create .env and .env.testing from .env.example
  • Launch postgresql and create database DB_NAME in .env or/and .env.testing

Usage

  • 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

Technology

- Go
- Gin-Gonic
- Gorm
- CORS
- Testify
- GolintCI-Lint

About

Api example in Go with go-gonic, gorm and testify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.4%
  • Shell 1.6%