You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
466 B
19 lines
466 B
.PHONY: dev build clean
|
|
|
|
# Start backend and frontend in dev mode (run in separate terminals)
|
|
dev-backend:
|
|
ADMIN_PASSWORD=123123 JWT_SECRET=y123123 go run -tags dev person-home
|
|
|
|
dev-frontend:
|
|
cd frontend && npm run dev
|
|
|
|
# Production build: frontend + Go binary
|
|
build:
|
|
cd frontend && npm ci && npm run build
|
|
go build -ldflags="-s -w" -o person-home person-home
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -f person-home
|
|
rm -rf frontend/dist
|
|
rm -rf frontend/node_modules
|