app/cmd/test/main.go

25 lines
455 B
Go
Raw Permalink Normal View History

2021-12-16 04:11:33 +00:00
package main
import (
"kumoly.io/kumoly/app/auth"
2021-12-16 13:43:56 +00:00
"kumoly.io/kumoly/app/history"
2021-12-16 04:11:33 +00:00
"kumoly.io/kumoly/app/server"
"kumoly.io/kumoly/app/store"
"kumoly.io/kumoly/app/system"
"kumoly.io/kumoly/app/task"
)
func main() {
store.Setup()
sys := system.New()
server := server.New("app")
auth.Setup()
auth.SetDB(store.DB)
sys.Inject(auth.Injector(server.API))
2021-12-16 13:43:56 +00:00
sys.Append(server, auth.New(server), &task.Service{}, &history.Service{})
2021-12-16 04:11:33 +00:00
sys.Start()
}