aergoio / aergoscan_v2_frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:HTML 53.3%Language:Vue 31.5%Language:SCSS 12.2%Language:JavaScript 2.9%