Pulse/Makefile
Pulse Monitor 66403e88fb refactor: consolidate authentication system and improve API structure
- Remove registration tokens feature in favor of simpler API token auth
- Add password authentication with change password functionality
- Centralize API client logic with proper auth handling
- Add development scripts for better DX (hot-reload, proxy setup)
- Refactor auth middleware and handlers for cleaner separation
- Update frontend to use new centralized API client
2025-08-13 14:51:46 +00:00

37 lines
No EOL
816 B
Makefile

# Pulse Makefile for development
.PHONY: build run dev frontend backend all clean
# Build everything
all: frontend backend
# Build frontend only
frontend:
cd frontend-modern && npm run build
rm -rf internal/api/frontend-modern/dist
cp -r frontend-modern/dist internal/api/frontend-modern/
# Build backend only (includes embedded frontend)
backend:
go build -o pulse ./cmd/pulse
# Build both and run
build: frontend backend
# Run the built binary
run: build
./pulse
# Development - rebuild everything and restart service
dev: frontend backend
sudo systemctl restart pulse-backend
# Clean build artifacts
clean:
rm -f pulse
rm -rf frontend-modern/dist
rm -rf internal/api/frontend-modern/dist
# Quick rebuild and restart for development
restart: frontend backend
sudo systemctl restart pulse-backend