Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 868 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 868 Bytes

Local frontend development

You can build the frontend locally without re-building the docker image.

# install dependencies
yarn

# serve with hot reload at localhost:8081
yarn dev

Build for production

# localhost
CONFIG_NAME=local yarn build

# alpha net
CONFIG_NAME=alphanet yarn build

# main net
CONFIG_NAME=mainnet yarn build

# test net
CONFIG_NAME=testnet yarn build

Development build with different AERGO node:

# localhost
AERGO_NODE=https://testnet-api-http.aergo.io yarn dev

# main net
AERGO_NODE=https://mainnet-api-http.aergo.io API_URL=https://api2-mainnet.aergoscan.io/v2 yarn dev

# test net
AERGO_NODE=https://testnet-api-http.aergo.io API_URL=https://api2-testnet.aergoscan.io/v2 yarn dev

# alpha net
AERGO_NODE=https://alpha-api-http.aergo.io API_URL=https://api2-alpha.aergoscan.io/v2 yarn dev