-
Install node.js (version 8.9.x)
-
Install webpack globally
npm install -g webpack npm install -g webpack-cli
-
Install truffle and Ganache, both available from Truffle.
-
Compile and migrate the contracts.
truffle compile truffle migrate --reset
-
Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.
npm start
-
Build the docker container.
docker build -t etherslist .
-
Launch the docker container.
docker run -p 3000:3000 etherslist:latest
3 Remove all container
docker rm $(docker ps -a -q)
- Browse to http://localhost:3000
docker rmi $(docker images -q)
-
Why is there both a truffle.js file and a truffle-config.js file?
Truffle requires the truffle.js file be named truffle-config on Windows machines. Feel free to delete the file that doesn't correspond to your platform.