-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
59 lines (52 loc) · 1.65 KB
/
Makefile
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
48
49
50
51
52
53
54
55
56
57
58
59
create-canisters:
dfx canister create --all
deploy-provider:
dfx deploy ic_siws_provider --argument "( \
record { \
domain = \"127.0.0.1\"; \
uri = \"http://127.0.0.1:5173\"; \
salt = \"salt\"; \
chain_id = opt \"mainnet\"; \
scheme = opt \"http\"; \
statement = opt \"Login to the SIWS/IC demo app\"; \
sign_in_expires_in = opt 300000000000; /* 5 minutes */ \
session_expires_in = opt 604800000000000; /* 1 week */ \
targets = opt vec { \
\"$$(dfx canister id ic_siws_provider)\"; \
\"$$(dfx canister id backend)\"; \
}; \
} \
)"
upgrade-provider:
dfx canister install ic_siws_provider --mode upgrade --upgrade-unchanged --argument "( \
record { \
domain = \"127.0.0.1\"; \
uri = \"http://127.0.0.1:5173\"; \
salt = \"salt\"; \
chain_id = opt \"mainnet\"; \
scheme = opt \"http\"; \
statement = opt \"Login to the SIWS/IC demo app\"; \
sign_in_expires_in = opt 300000000000; /* 5 minutes */ \
session_expires_in = opt 604800000000000; /* 1 week */ \
targets = opt vec { \
\"$$(dfx canister id ic_siws_provider)\"; \
\"$$(dfx canister id backend)\"; \
}; \
} \
)"
deploy-backend:
dfx deploy backend --argument "$$(dfx canister id ic_siws_provider)"
deploy-frontend:
# npm install
dfx deploy frontend
deploy-all: create-canisters deploy-provider deploy-backend deploy-frontend
run-frontend:
npm install
npm run dev
clean:
rm -rf .dfx
rm -rf dist
rm -rf node_modules
rm -rf src/declarations
rm -f .env
cargo clean