Base Project

This commit is contained in:
Tran Anh Tuan
2026-05-08 14:32:24 +07:00
parent 5a9249c9ea
commit 6a4a96e0ca
74 changed files with 6749 additions and 0 deletions

18
cmd/server/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"wm-backend/global"
"wm-backend/internal/routers"
_ "wm-backend/internal/services"
)
// @title Warehouse Management API
// @version 1.0
// @description This is the Warehouse Management API server.
// @host localhost:3000
// @BasePath /api/v1
func main() {
r := routers.NewRouter()
_ = global.Cfg // ensure config is loaded via init()
r.Run(":" + global.Cfg.Server.Port)
}