Skip to content

qigao/go-doodle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang web application

Golang web multi module application by DDD/TDD

How to create module

  • create a folder and init module

$ mkdir demo && cd demo
$ go mod init  demo
  • update go.work

How to build

  • install podman/podman-compose

  • edit dotenv

DB_HOST=localhost
DB_NAME=gforum
DB_PORT=3306
DB_USER=forum
DB_PASSWORD=secret
  • load .env file

export $(grep -v '^#' .env | xargs)
  • install tools

task tools
  • gen entity from sql

➜ task dbimport
➜ task start-mysql
➜ task importSql # for dev purpose only
➜ task codegen
➜ task stop-mysql
  • build application

task forum:build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published