Pinterest-like app for saving images, videos, quotes, and embeds. Features: - Go backend with PostgreSQL, SSR templates - Console-based admin auth (login/logout via browser console) - Item types: images, videos (ffmpeg transcoding), quotes, embeds - Media stored as BLOBs in PostgreSQL - OpenGraph metadata extraction for links - Embed detection for YouTube, Vimeo, Twitter/X - Masonry grid layout, item detail pages - Tag system with filtering - Refresh metadata endpoint with change warnings - Replace media endpoint for updating item images/videos
26 lines
433 B
Makefile
26 lines
433 B
Makefile
APP := ./cmd/server
|
|
VERSION := $(shell git rev-parse --short HEAD 2>/dev/null || echo "dev")
|
|
LDFLAGS := -X 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)
|