Flow
How to enable the flow system, which lets you model data types and forms in workspaces in the admin center.

package main
import (
"time"
"github.com/worldiety/option"
"go.wdy.de/nago/application"
cfgflow "go.wdy.de/nago/application/flow/cfg"
cfginspector "go.wdy.de/nago/application/inspector/cfg"
cfgmigration "go.wdy.de/nago/application/migration/cfg"
"go.wdy.de/nago/web/vuejs"
)
func main() {
application.Configure(func(cfg *application.Configurator) {
cfg.SetApplicationID("de.worldiety.tutorial_86")
cfg.Serve(vuejs.Dist())
option.Must(cfgmigration.Enable(cfg))
option.MustZero(cfg.StandardSystems())
option.Must(option.Must(cfg.UserManagement()).UseCases.EnableBootstrapAdmin(time.Now().Add(time.Hour), "%6UbRsCuM8N$auy"))
cfg.SetDecorator(cfg.NewScaffold().Decorator())
option.Must(cfginspector.Enable(cfg))
option.Must(cfgflow.Enable(cfg, cfgflow.Options{}))
/*cfg.RootViewWithDecoration(".", func(wnd core.Window) core.View {
return
})*/
}).Run()
}
View on GitHub ↗
· run it with go run go.wdy.de/nago/example/cmd/tutorial-86-flow@latest