Base webui and backend additions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: service webui test build clean
|
||||
.PHONY: service webui dev test build clean
|
||||
|
||||
export PATH := $(HOME)/.local/go/bin:$(PATH)
|
||||
|
||||
@@ -8,6 +8,13 @@ service:
|
||||
webui:
|
||||
cd webui && npm run dev
|
||||
|
||||
# Run API (:8080) and web UI (:5173) together; Ctrl+C stops both.
|
||||
dev:
|
||||
@trap 'kill 0' EXIT INT TERM; \
|
||||
(cd service && go run ./cmd/server) & \
|
||||
(cd webui && npm run dev) & \
|
||||
wait
|
||||
|
||||
test:
|
||||
cd service && go test ./...
|
||||
cd webui && npm test
|
||||
|
||||
Reference in New Issue
Block a user