Something went wrong. Try again.
Educational demo of a single node, sqlite, Datastar, CQRS app with low latency UX.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546.PHONY: run build test race fmt fmtcheck vet staticcheck check seed load clean
# Run with a throwaway temp-file DB seeded with 10k fake issues (the default).run: go run .
# Build the server binary.build: go build -o zbugs-datastar .
# Unit tests (pure helpers; no DB/HTTP needed).test: go test ./...
race: go test -race ./...
fmt: gofmt -w .
# Gate version of fmt: fail (don't rewrite) if anything is unformatted.fmtcheck: test -z "$$(gofmt -l .)"
vet: go vet ./...
# staticcheck is a go.mod tool dependency (see the tool directive).staticcheck: go tool staticcheck ./...
# Everything CI should gate on.check: fmtcheck vet staticcheck test
# Persist to a named file DB instead of a throwaway one, seeding only if empty.seed: go run . -fresh=false -db file:dbugs.db -seed 50000
# Load/QA harness. Start the server with -writelimit=false first, e.g.:# go run . -writelimit=falseload: go run ./cmd/zload -readers 200 -writers 40 -rate 1 -dur 20s
clean: rm -f zbugs-datastar dbugs.db dbugs.db-wal dbugs.db-shm