From b62c686702622b747ab082b7b12b3e611e1d7e1f Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 3 Mar 2024 20:06:40 +0100 Subject: model: Create test data with Go instead of SQL This allows to formulate the test data with an object-based model which is easier than writing it down in a relational model. --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 1130ddb..70a1c00 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,8 @@ func main() { model.InitDatabase() defer model.CloseDatabase() + model.InjectTestRecipes() + view.Init() var srv *http.Server = startServer("127.0.0.1:8080") -- cgit v1.2.3-70-g09d2