-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.09 KB
/
Makefile
File metadata and controls
47 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: setup migrate compile deploy seed test demo dev check
setup:
docker-compose up -d
cd backend && npm install
cd frontend && npm install
cd zk-circuits && npm install
cd contracts/credential_nft && cargo build
cd contracts/revocation_registry && cargo build
cd contracts/disclosure_contract && cargo build
@echo "Setup complete. Run 'make migrate' next."
migrate:
cd backend && npm run migrate
@echo "Database migrated."
compile:
bash scripts/setup-ptau.sh
cd zk-circuits && bash compile.sh
bash scripts/copy-circuits.sh
cd backend && npm run copy-vkeys
@echo "ZK circuits compiled and copied."
deploy:
bash scripts/deploy-contracts.sh
seed:
cd backend && npx ts-node ../scripts/seed-issuers.ts
test:
cd contracts/credential_nft && cargo test
cd contracts/revocation_registry && cargo test
cd contracts/disclosure_contract && cargo test
cd backend && npm test
cd frontend && npm run build
@echo "All tests passed."
demo:
npx ts-node scripts/demo.ts
dev:
docker-compose up -d
cd backend && npm run dev &
cd frontend && npm run dev
check:
npx ts-node scripts/check-env.ts