Files
blackroad-os-prism-console/Makefile
Alexa Louise 7a657587d4 feat: add Makefile for local dev
- Add install, dev, build, start, test, lint targets
- Add health and version endpoint checks
- Add docker-build and docker-run targets
- Standardizes development workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 13:37:10 -06:00

53 lines
1.2 KiB
Makefile

# BlackRoad OS Prism Console - Development Makefile
.PHONY: help install dev build test lint health version clean docker-build docker-run
PORT := 3000
help:
@echo "BlackRoad OS Prism Console - Development Commands"
@echo ""
@echo " make install - Install dependencies"
@echo " make dev - Run development server"
@echo " make build - Build for production"
@echo " make test - Run tests"
@echo " make lint - Run linter"
@echo " make health - Check health endpoint"
@echo " make version - Check version endpoint"
@echo " make docker-build - Build Docker image"
@echo " make docker-run - Run Docker container"
@echo ""
install:
pnpm install
dev:
pnpm dev
build:
pnpm build
start:
pnpm start
test:
pnpm test
lint:
pnpm lint
health:
@curl -sf http://localhost:$(PORT)/api/health | python3 -m json.tool || echo "Service not running on port $(PORT)"
version:
@curl -sf http://localhost:$(PORT)/api/version | python3 -m json.tool || echo "Service not running on port $(PORT)"
clean:
rm -rf .next node_modules
docker-build:
docker build -t blackroad-os-prism-console .
docker-run:
docker run -p $(PORT):$(PORT) -e PORT=$(PORT) blackroad-os-prism-console