From c47d32ba9cc62c2b64701879c079a2958c43ea18 Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Fri, 3 Sep 2021 00:24:45 -0400 Subject: [PATCH] bridge_ui: build instructions Change-Id: I34a9ad257be2d98a449f4f02179e5f1fceb0ed48 --- bridge_ui/README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/bridge_ui/README.md b/bridge_ui/README.md index 89d879cdb..79f081dc3 100644 --- a/bridge_ui/README.md +++ b/bridge_ui/README.md @@ -1 +1,54 @@ # Example Token Bridge UI + +## Prerequisites + +- Docker +- NodeJS v14+ + +Run the following from the root of this repo + +```bash +DOCKER_BUILDKIT=1 docker build -- --target node-export -f Dockerfile.proto -o type=local,dest=. . +DOCKER_BUILDKIT=1 docker build -- -f Dockerfile.wasm -o type=local,dest=.. . +npm ci --prefix ethereum +npm ci --prefix sdk/js +npm run build --prefix sdk/js +``` + +The remaining steps can be run from this folder + +## Install + +```bash +npm ci +``` + +## Develop + +```bash +npm start +``` + +## Build for local tilt network + +```bash +npm run build +``` + +## Build for testnet + +```bash +REACT_APP_CLUSTER=testnet npm run build +``` + +## Build for mainnet + +```bash +REACT_APP_CLUSTER=mainnet REACT_APP_COVALENT_API_KEY=YOUR_API_KEY npm run build +``` + +## Test Server + +```bash +npx serve -s build +```