package main

import (
	"log"
	"os"

	"git.az-it.net/az/morz-infoboard/server/backend/internal/app"
)

func main() {
	logger := log.New(os.Stdout, "backend ", log.LstdFlags|log.LUTC)

	application, err := app.New()
	if err != nil {
		logger.Fatalf("init app: %v", err)
	}

	logger.Printf("starting backend on %s", application.Config.HTTPAddress)

	if err := application.Run(); err != nil {
		logger.Fatalf("run backend: %v", err)
	}
}
