frontend-foundation: GOAT front-end Phase 1 — auth, tag management, public tag page (22/22 spec scenarios pass)
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
DATABASE_URL ?= postgres://wherewoof:ww_dev_2026@192.168.20.13:5434/wherewoof
|
||||
export DATABASE_URL
|
||||
|
||||
.PHONY: db-up seed run build generate psql
|
||||
|
||||
db-up: ## apply db/schema.sql (embedded migrator, no psql needed)
|
||||
cd frontend && go run ./cmd/migrate -schema ../db/schema.sql
|
||||
|
||||
seed: ## insert test tag codes TEST000001..TEST000010
|
||||
cd frontend && go run ./cmd/seed
|
||||
|
||||
run: ## run the web server (port 3020)
|
||||
cd frontend && go run .
|
||||
|
||||
build: ## build linux amd64 binary for .13
|
||||
cd frontend && GOOS=linux GOARCH=amd64 go build -o where-woof .
|
||||
|
||||
generate: ## regenerate sqlc query code
|
||||
cd frontend && sqlc generate
|
||||
|
||||
psql: ## ad-hoc SQL shell into wherewoof-db on .13 (no local psql install)
|
||||
ssh sam@192.168.20.13 docker exec -i wherewoof-db psql -U wherewoof -d wherewoof
|
||||
Reference in New Issue
Block a user