51 lines
617 B
Markdown
51 lines
617 B
Markdown
# Example Token Bridge UI
|
|
|
|
## Prerequisites
|
|
|
|
- NodeJS v14+
|
|
- NPM v7.18+
|
|
|
|
## 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 REACT_APP_SOLANA_API_URL=YOUR_CUSTOM_RPC npm run build
|
|
```
|
|
|
|
## Test Server
|
|
|
|
```bash
|
|
npx serve -s build
|
|
```
|
|
|
|
## Environment Variables (optional)
|
|
|
|
Create `.env` from the sample file, then add your Covalent API key:
|
|
|
|
```bash
|
|
cp .env.sample .env
|
|
```
|