owl-blogs/main.go

17 lines
319 B
Go
Raw Normal View History

2023-06-25 18:04:06 +00:00
package main
import (
2023-06-25 19:32:36 +00:00
"owl-blogs/app"
"owl-blogs/infra"
"owl-blogs/web"
2023-06-25 18:04:06 +00:00
)
func main() {
2023-06-25 19:32:36 +00:00
db := infra.NewSqliteDB("owlblogs.db")
2023-06-25 19:54:04 +00:00
registry := app.NewEntryTypeRegistry()
repo := infra.NewEntryRepository(db, registry)
2023-06-25 19:32:36 +00:00
entryService := app.NewEntryService(repo)
webApp := web.NewWebApp(entryService)
webApp.Run()
2023-06-25 18:04:06 +00:00
}