Potion/cmd/web/main.go
2026-01-15 13:10:53 -07:00

20 lines
426 B
Go

package main
import (
"github.com/haydenhargreaves/Potion/internal/app/server"
"github.com/haydenhargreaves/Potion/internal/infrastructure/logging"
"github.com/haydenhargreaves/Potion/internal/infrastructure/logging/loggers"
)
const PORT = 3000
func main() {
s := server.Init(PORT).Setup()
defer s.DB.Close()
logger := loggers.NewConsoleLogger()
logger.Log(logging.LogLevelDebug, "%s", "Hello world")
s.Start()
}