Api example in Go with go-gonic, gorm and testify
 
 
Go to file
fbonhomm b020e2d3cb modules: add golangci-lint 2019-09-15 16:32:16 +02:00
source CI: minor changement for CI passed 2019-09-15 16:31:06 +02:00
test test: setup unit test and add unit test user create validator 2019-09-14 23:11:52 +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
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 modules: add golangci-lint 2019-09-15 16:32:16 +02:00
go.sum modules: add golangci-lint 2019-09-15 16:32:16 +02:00
main.go refactor: move initialize route in routers/index.go 2019-09-03 17:57: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