-
create a folder and init module
$ mkdir demo && cd demo
$ go mod init demo
-
update go.work
-
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