yarn install
ornpm install
depending on your preference- make sure you have testrpc running , and change
truffle.js
to point to that network. e.g.localhost:8545
. truffle compile
to create the json contract artifactstruffle migrate
to deploy the contracts onto the network- change the web3 provider in
app/main.js
to point to the testrpc server. npm run build
to compile the javascript and html assets into thebuild
foldertruffle serve
to 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 install
ornpm install
depending on your preference- change
truffle.js
to point to that network. this istestrpc:8545
from inside the container truffle compile
to create the json contract artifactstruffle migrate
to deploy the contracts onto the network- change the web3 provider in
app/main.js
to point to the testrpc server. !! this will belocalhost:7000
!! npm run build
to compile the javascript and html assets into thebuild
foldertruffle serve
to serve the assets in the build folder- navigate to
localhost:7001/index.html
in your browser to see the served assets
- Use the webpack hotloader to sense when contracts or javascript have been recompiled and rebuild the application