2021-09-10 17:53:50 -07:00
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Docker
|
|
|
|
- NodeJS v14+
|
|
|
|
|
|
|
|
Run the following from the root of this repo
|
|
|
|
|
|
|
|
```bash
|
2021-09-13 11:39:25 -07:00
|
|
|
DOCKER_BUILDKIT=1 docker build --target node-export -f Dockerfile.proto -o type=local,dest=. .
|
|
|
|
DOCKER_BUILDKIT=1 docker build -f solana/Dockerfile.wasm -o type=local,dest=. solana
|
2021-09-10 17:53:50 -07:00
|
|
|
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
|
|
|
|
```
|
2021-09-15 06:07:57 -07:00
|
|
|
|
|
|
|
## 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 npm run build
|
|
|
|
```
|
|
|
|
|
|
|
|
## Test Server
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npx serve -s build
|
|
|
|
```
|