# 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-apiin 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
.envand side chain URLs inconfig/config.js- change the value of
BUILD_ENDPOINTin file to the chain node URL you have
- change the value of
- Run the npm script
startthis script will start anpm start
webpack-dev-serverand listen on port3000, openhttp:0.0.0.0:3000in 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 chainAElf Chain