Api example in Go with go-gonic, gorm and testify
 
 
Go to file
fbonhomm af8d6c78cc project: rename project 2019-09-15 16:43:13 +02:00
.circleci CI: add config circleci 2019-09-15 16:33:52 +02:00
docker docker: add docker-compose file with postgresql 2019-09-15 16:33:28 +02:00
source project: rename project 2019-09-15 16:43:13 +02:00
test project: rename project 2019-09-15 16:43:13 +02:00
.env.example feat: add .env.example 2019-09-03 17:54:04 +02:00
.gitignore refactor: add .env in gitignore 2019-09-03 17:52:35 +02:00
.golangci.yml project: rename project 2019-09-15 16:43:13 +02:00
LICENSE Initial commit 2019-08-20 12:00:49 +02:00
README.md readme: add information and change title 2019-09-15 16:31:37 +02:00
go.mod project: rename project 2019-09-15 16:43:13 +02:00
go.sum modules: add golangci-lint 2019-09-15 16:32:16 +02:00
main.go project: rename project 2019-09-15 16:43:13 +02:00

README.md

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