add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
22
cmd/server/main.go
Normal file
22
cmd/server/main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user