Replace CLI + SQLite architecture with a Go web server + vanilla JS frontend using IndexedDB for all client-side data storage. - Remove: cli, store, report, static packages - Add: compute engine (BuildDashboard), server package, web UI - Add: setup page with CRUD for profiles, rooms, devices, occupants, AC - Add: dashboard with SVG temperature timeline, risk analysis, care checklist - Add: i18n support (English/German) with server-side Go templates - Add: LLM provider selection UI with client-side API key storage - Add: per-room indoor temperature, edit buttons, language-aware AI summary
21 lines
466 B
Makefile
21 lines
466 B
Makefile
.PHONY: build test clean css dev
|
|
|
|
BINARY := heatguard
|
|
BUILD_DIR := bin
|
|
|
|
build: css
|
|
go build -o $(BUILD_DIR)/$(BINARY) ./cmd/heatguard
|
|
|
|
test:
|
|
go test -race ./internal/heat/... ./internal/risk/... ./internal/action/... \
|
|
./internal/weather/... ./internal/llm/... ./internal/compute/... ./internal/server/...
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
|
|
css:
|
|
npx @tailwindcss/cli -i tailwind/input.css -o web/css/app.css --minify
|
|
|
|
dev:
|
|
go run ./cmd/heatguard --dev --port 8080
|