# install dependencies
$ yarn
- Firstly, start up projects listed below
- AElf Chain or use a running AElf chain node
- aelf-block-api
- aelf-web-proxy
- Modify the proxy config in
build/proxy.json
- there are several proxy configs, if you have started related projects such as
aelf-block-api
in local environment, this file doesn't need any changes
- there are several proxy configs, if you have started related projects such as
- Change the chain node URL in
.env
and side chain URLs inconfig/config.js
- change the value of
BUILD_ENDPOINT
in file to the chain node URL you have
- change the value of
- Run the npm script
start
this script will start anpm start
webpack-dev-server
and listen on port3000
, openhttp:0.0.0.0:3000
in your browser manually.
For production, change the chain node URL in config/config.js
and run:
npm run build
/api/*
=>scan server
; aelf-block-api/chain/*
=>aelf chain
AElf Chain