yarn installornpm installdepending on your preference- make sure you have testrpc running , and change
truffle.jsto point to that network. e.g.localhost:8545. truffle compileto create the json contract artifactstruffle migrateto deploy the contracts onto the network- change the web3 provider in
app/main.jsto point to the testrpc server. npm run buildto compile the javascript and html assets into thebuildfoldertruffle serveto serve the assets in the build folder- navigate to the host and port that truffle is serving (default,
localhost:8080) in order to see the served assets
docker-compose -f docker/docker-compose.yml up -d- once the container starts, find the hash of the truffle3_container service and run
docker attach <hash> yarn installornpm installdepending on your preference- change
truffle.jsto point to that network. this istestrpc:8545from inside the container truffle compileto create the json contract artifactstruffle migrateto deploy the contracts onto the network- change the web3 provider in
app/main.jsto point to the testrpc server. !! this will belocalhost:7000!! npm run buildto compile the javascript and html assets into thebuildfoldertruffle serveto serve the assets in the build folder- navigate to
localhost:7001/index.htmlin your browser to see the served assets
- Use the webpack hotloader to sense when contracts or javascript have been recompiled and rebuild the application