add initial application structure with configuration, logging, and health check endpoints

This commit is contained in:
kever
2026-01-14 23:58:00 +08:00
commit fed727e593
31 changed files with 770 additions and 0 deletions

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

@@ -0,0 +1,22 @@
package main
import (
"context"
"log"
"epic-ent/internal/bootstrap"
)
func main() {
app := bootstrap.NewApp()
if err := app.Start(context.Background()); err != nil {
log.Fatalf("failed to start app: %v", err)
}
<-app.Done()
if err := app.Stop(context.Background()); err != nil {
log.Printf("failed to stop app: %v", err)
}
}