This commit is contained in:
Michael
2026-04-29 20:11:57 +02:00
commit a14103ad8e
167 changed files with 7060 additions and 0 deletions

27
app/cmd/app/main.go Normal file
View File

@ -0,0 +1,27 @@
package main
import (
"git.heldm.com/held/qrcode/internal/app/bootstrap"
"git.heldm.com/held/qrcode/internal/infr/env"
"github.com/gin-gonic/gin"
"log"
"os"
)
func main() {
var app *gin.Engine
env.SetupEnvFile()
if os.Getenv("APP_ENV") == "dev" {
app = bootstrap.NewAppDev()
} else {
app = bootstrap.NewApp()
}
if err := app.Run(":3000"); err != nil {
log.Fatal(err)
}
}