Skip to content

Commit d29abdf

Browse files
authored
Merge pull request #10 from keep-network/keep-dashboard-install
Added scripts for Keep Dashboard installation
2 parents 59f5c1e + 5399583 commit d29abdf

File tree

4 files changed

+80
-1
lines changed

4 files changed

+80
-1
lines changed

README.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ end-to-end tests. Before you start interacting, make sure you:
132132
- Have a working relay maintainer (`run-testnet-relay.sh`)
133133
- Have 1 `keep-core` and 3 `keep-ecdsa` clients up and running
134134

135+
== Keep Dashboard dApp
136+
137+
To run the Keep Dashboard dApp invoke:
138+
```
139+
./run-keep-dashboard.sh
140+
```
141+
135142
== tBTC dApp
136143

137144
To run the tBtc dApp invoke:

install-keep-dashboard.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
LOG_START='\n\e[1;36m' # new line + bold + color
6+
LOG_END='\n\e[0m' # new line + reset color
7+
DONE_START='\n\e[1;32m' # new line + bold + green
8+
DONE_END='\n\n\e[0m' # new line + reset
9+
10+
WORKDIR=$PWD
11+
12+
printf "${LOG_START}Starting Keep Dashboard deployment...${LOG_END}"
13+
14+
printf "${LOG_START}Preparing keep-core artifacts...${LOG_END}"
15+
16+
cd $WORKDIR/keep-core/solidity
17+
ln -sf build/contracts artifacts
18+
19+
printf "${LOG_START}Preparing keep-ecdsa artifacts...${LOG_END}"
20+
21+
cd $WORKDIR/keep-ecdsa/solidity
22+
ln -sf build/contracts artifacts
23+
24+
printf "${LOG_START}Preparing tBTC artifacts...${LOG_END}"
25+
26+
cd $WORKDIR/tbtc/solidity
27+
ln -sf build/contracts artifacts
28+
29+
printf "${LOG_START}Install Keep Dashboard dependencies...${LOG_END}"
30+
31+
cd $WORKDIR/keep-core/solidity/dashboard
32+
33+
npm install
34+
35+
printf "${LOG_START}Updating Keep Dashboard dependnecies...${LOG_END}"
36+
37+
cd $WORKDIR/keep-core/solidity
38+
npm link
39+
40+
cd $WORKDIR/keep-ecdsa/solidity
41+
npm link
42+
43+
cd $WORKDIR/tbtc/solidity
44+
npm link
45+
46+
printf "${LOG_START}Updating Keep Dashboard configuration...${LOG_END}"
47+
48+
cd $WORKDIR/keep-core/solidity/dashboard
49+
npm link @keep-network/keep-core
50+
npm link @keep-network/keep-ecdsa
51+
npm link @keep-network/tbtc
52+
53+
printf "${DONE_START}Keep Dashboard initialized successfully!${DONE_END}"

install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ set -e
1414
# Install tBTC.
1515
./install-tbtc.sh
1616

17+
# Install Keep Dashboard.
18+
./install-keep-dashboard.sh
19+
1720
# Install tBTC dApp.
1821
./install-tbtc-dapp.sh
1922

2023
# Install relay-maintainer.
21-
./install-testnet-relay.sh
24+
./install-testnet-relay.sh

run-keep-dashboard.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
LOG_START='\n\e[1;36m' # new line + bold + color
6+
LOG_END='\n\e[0m' # new line + reset color
7+
DONE_START='\n\e[1;32m' # new line + bold + green
8+
DONE_END='\n\n\e[0m' # new line + reset
9+
10+
WORKDIR=$PWD
11+
12+
printf "${LOG_START}Starting Keep Dashboard...${LOG_END}"
13+
14+
cd $WORKDIR/keep-core/solidity/dashboard
15+
16+
npm run start

0 commit comments

Comments
 (0)