Pinterest-style visual bookmarking app with: - URL metadata extraction (OG/Twitter meta, oEmbed fallback) - Image caching in Postgres with 480px thumbnails - Multi-tag filtering with Ctrl/Cmd for OR mode - Fuzzy tag suggestions and inline tag editing - Browser console auth() with first-use password setup - Brutalist UI with Commit Mono font and Pico CSS - Light/dark mode via browser preference
26 lines
452 B
Makefile
26 lines
452 B
Makefile
APP := ./cmd/server
|
|
VERSION := $(shell git rev-parse --short HEAD 2>/dev/null || echo "dev")
|
|
LDFLAGS := -X git.soup.land/soup/lookbook/internal/static.Version=$(VERSION)
|
|
|
|
.PHONY: dev run migrate rollback fmt test build
|
|
|
|
dev:
|
|
hivemind
|
|
|
|
run:
|
|
go run $(APP) web
|
|
|
|
migrate:
|
|
go run $(APP) -migrate
|
|
|
|
rollback:
|
|
go run $(APP) -rollback
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
test:
|
|
go test -v ./...
|
|
|
|
build:
|
|
CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o bin/lookbook $(APP)
|