Skip to content

Commit

Permalink
Merge pull request #10 from keep-network/keep-dashboard-install
Browse files Browse the repository at this point in the history
Added scripts for Keep Dashboard installation
  • Loading branch information
r-czajkowski authored Jun 22, 2020
2 parents 59f5c1e + 5399583 commit d29abdf
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ end-to-end tests. Before you start interacting, make sure you:
- Have a working relay maintainer (`run-testnet-relay.sh`)
- Have 1 `keep-core` and 3 `keep-ecdsa` clients up and running

== Keep Dashboard dApp

To run the Keep Dashboard dApp invoke:
```
./run-keep-dashboard.sh
```

== tBTC dApp

To run the tBtc dApp invoke:
Expand Down
53 changes: 53 additions & 0 deletions install-keep-dashboard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash

set -e

LOG_START='\n\e[1;36m' # new line + bold + color
LOG_END='\n\e[0m' # new line + reset color
DONE_START='\n\e[1;32m' # new line + bold + green
DONE_END='\n\n\e[0m' # new line + reset

WORKDIR=$PWD

printf "${LOG_START}Starting Keep Dashboard deployment...${LOG_END}"

printf "${LOG_START}Preparing keep-core artifacts...${LOG_END}"

cd $WORKDIR/keep-core/solidity
ln -sf build/contracts artifacts

printf "${LOG_START}Preparing keep-ecdsa artifacts...${LOG_END}"

cd $WORKDIR/keep-ecdsa/solidity
ln -sf build/contracts artifacts

printf "${LOG_START}Preparing tBTC artifacts...${LOG_END}"

cd $WORKDIR/tbtc/solidity
ln -sf build/contracts artifacts

printf "${LOG_START}Install Keep Dashboard dependencies...${LOG_END}"

cd $WORKDIR/keep-core/solidity/dashboard

npm install

printf "${LOG_START}Updating Keep Dashboard dependnecies...${LOG_END}"

cd $WORKDIR/keep-core/solidity
npm link

cd $WORKDIR/keep-ecdsa/solidity
npm link

cd $WORKDIR/tbtc/solidity
npm link

printf "${LOG_START}Updating Keep Dashboard configuration...${LOG_END}"

cd $WORKDIR/keep-core/solidity/dashboard
npm link @keep-network/keep-core
npm link @keep-network/keep-ecdsa
npm link @keep-network/tbtc

printf "${DONE_START}Keep Dashboard initialized successfully!${DONE_END}"
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ set -e
# Install tBTC.
./install-tbtc.sh

# Install Keep Dashboard.
./install-keep-dashboard.sh

# Install tBTC dApp.
./install-tbtc-dapp.sh

# Install relay-maintainer.
./install-testnet-relay.sh
./install-testnet-relay.sh
16 changes: 16 additions & 0 deletions run-keep-dashboard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

LOG_START='\n\e[1;36m' # new line + bold + color
LOG_END='\n\e[0m' # new line + reset color
DONE_START='\n\e[1;32m' # new line + bold + green
DONE_END='\n\n\e[0m' # new line + reset

WORKDIR=$PWD

printf "${LOG_START}Starting Keep Dashboard...${LOG_END}"

cd $WORKDIR/keep-core/solidity/dashboard

npm run start

0 comments on commit d29abdf

Please sign in to comment.