46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
.PHONY: help up down logs benchmark clean reset
|
|
|
|
help:
|
|
@echo "License Verification ZKP System - Available Commands:"
|
|
@echo " make up - Start all services"
|
|
@echo " make down - Stop all services"
|
|
@echo " make logs - View logs"
|
|
@echo " make benchmark - Run performance benchmark"
|
|
@echo " make clean - Clean up containers and volumes"
|
|
@echo " make reset - Full reset (removes all data)"
|
|
@echo " make db-init - Initialize database with test data"
|
|
@echo " make compile - Compile Circom circuits"
|
|
|
|
up:
|
|
docker compose up -d
|
|
@echo "Services starting... Check status with 'docker compose ps'"
|
|
|
|
down:
|
|
docker compose down
|
|
|
|
logs:
|
|
docker compose logs -f
|
|
|
|
benchmark:
|
|
docker compose exec zkp-engine npm run benchmark
|
|
|
|
clean:
|
|
docker compose down -v
|
|
rm -rf postgres_data redis_data proving_keys
|
|
|
|
reset: clean
|
|
rm -rf zkp-service/circuits/*.r1cs
|
|
rm -rf zkp-service/circuits/*.wasm
|
|
rm -rf zkp-service/circuits/*.sym
|
|
rm -rf zkp-service/keys/*
|
|
|
|
db-init:
|
|
docker compose exec postgres psql -U license_admin -d license_verification -c "SELECT populate_test_licenses(1000);"
|
|
@echo "Database populated with 1000 test licenses"
|
|
|
|
compile:
|
|
docker compose exec zkp-engine node scripts/compile-circuits.js
|
|
|
|
monitor:
|
|
@echo "Opening monitoring dashboard at http://localhost:9090"
|
|
@xdg-open http://localhost:9090 2>/dev/null || open http://localhost:9090 2>/dev/null || echo "Please open http://localhost:9090 in your browser"
|