From b33cc7fca4037aee789280daefaf50464afebcc8 Mon Sep 17 00:00:00 2001 From: Giridhar Nair Date: Mon, 13 Jan 2025 12:23:27 -0600 Subject: [PATCH] update api script in package.json to ensure database setup runs before starting the server --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b30673..3afb025 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "postinstall": "cd api && go mod download", "create-db": "python3 db_setup/create_db.py && python3 db_setup/test_db.py", "test-api": "npm run create-db && cd api && go test -v ./...", - "api": "cd api && nodemon --exec go run main.go --signal SIGTERM", + "api": "npm run create-db && cd api && nodemon --exec go run main.go --signal SIGTERM", "vite": "vite", "dev": "npm run create-db && concurrently \"npm run vite\" \"npm run api\"", "build": "vite build",