Giter Club home page Giter Club logo

vnt-explorer-front's Introduction

VNT Explorer 前端运行指南

下载代码

git clone https://github.com/vntchain/vnt-explorer-front.git

安装 npm

安装依赖

npm install

配置环境变量

  • ./env 文件

    REACT_APP_API_DEV=#开发环境后端地址
    REACT_APP_API_PROD=#生产环境后端地址
    
  • ./constants/config.js

    export const rpc = // VNT 网络节点的 rpc 地址
    export const chainId = // VNT 网络的 chain ID

修改主网测试网

  • ./env 文件
      REACT_APP_NET= // mainnet testnet 
  • src/assets/_base.scss文件
      $net: // testnet mainnet

运行

npm start

部署

步骤:

  • 项目地址更新最新代码
git pull
  • 编译代码,并去除js map文件
npm run build
rm build/static/js/*.map
  • 复制build内容到部署地址
cp -r <origin path> <target path>
  • 重启nginx
nginx -s reload

vnt-explorer-front's People

Contributors

ruopuzi avatar innerwang avatar zhouxsss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.