Api example in Go with go-gonic, gorm and testify
 
 
Go to file
sundowndev 1be5c7848f refactor: format files 2019-11-27 17:40:24 +01:00
.circleci CI: add config circleci 2019-09-15 16:33:52 +02:00
.github/workflows Create main workflow (#1) 2019-11-27 17:23:25 +01:00
docker docker: add docker-compose file with postgresql 2019-09-15 16:33:28 +02:00
src Create main workflow (#1) 2019-11-27 17:23:25 +01:00
test refactor: format files 2019-11-27 17:40:24 +01: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 Create main workflow (#1) 2019-11-27 17:23:25 +01:00
go.sum modules: add golangci-lint 2019-09-15 16:32:16 +02:00
main.go refactor: format files 2019-11-27 17:40:24 +01: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