Skip to content

Commit

Permalink
update api script in package.json to ensure database setup runs befor…
Browse files Browse the repository at this point in the history
…e starting the server
  • Loading branch information
GiridharRNair committed Jan 13, 2025
1 parent a4e90b8 commit b33cc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b33cc7f

Please sign in to comment.