- truffle v4.1.14
- node.js
- geth (or Ganache)
You install globally truffle
version 4.1.14 with the following :
$ npm i -g [email protected]
Because of the solidity compiler(solc-js) version 0.4.24, you need to install truffle version 4.1.14.
If you have globally installed Truffle version 5, you have to run with npx
command in order to use version 4.1.14 locally installed.
e.g
$ npx truffle compile --all
$ npx truffle migrate --reset --network ropsten
You install these modules with the following :
$ npm i
You can not run without geth in the local environment. If geth is not installed, please install it.
First, run launch_test_net.sh
in the scripts directory from the terminal.
If DAG is not generated, it will take some time for DAG to be generated.
Please open another terminal and execute the following command.
You can enter truffle console with the following :
$ truffle console
Or, you can use Ganache as the local environment.
First, run Ganache CLI from the terminal.
$ ganache-cli
You can enter truffle console with the following :
$ truffle console
You can also use Ganache app as the local environment. If Ganache app is not installed, please install it.
First, run Ganache app.
You can enter truffle console with the following :
$ truffle console --network ganache