go-clean-architecture-template

module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: MIT

README

go-clean-architecture-template

  • OpenAPI
  • Gin
  • Unit test
  • Gorm
data model
  • Entity
  • Attribute
docker
docker-compose --env-file .env.docker -p gobackend up -d
migration
mysql -h 127.0.0.1 -P 3338 -u gobackend -pgobackend -D gobackend < schema/base.sql

phpmyadmin
http://localhost:9008/

build
go build ./cmd
test

if local, install godotenv

go get github.com/joho/godotenv/cmd/godotenv

run test

godotenv -f .env.local go test -v ./...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL