owl-blogs/main.go

16 lines
269 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")
repo := infra.NewEntryRepository(db)
entryService := app.NewEntryService(repo)
webApp := web.NewWebApp(entryService)
webApp.Run()
2023-06-25 18:04:06 +00:00
}