A screencast of the running project can be downloaded here.
sudo npm install ganache-cli -g
sudo npm install -g truffle
Init truffle project in new folder (truffleproject/
):
truffle init
Add contract to contracts/
folder and migration (2_deploy_contracts.js) to migrations/
folder. An example for a complete truffle project can be found here.
Compile contract:
sudo truffle compile
Start local blockchain in a new terminal:
ganache-cli
Adapt configuration in truffle-config.js
according to output of ganache-cli. Set the used port as shown in ganache-clis output.
Migrate contract:
sudo truffle migrate
Create symlink for the smart contracts:
ln -s ./truffleproject/build/contracts ./Car-Rental-Choreography-Visualization/src/contracts
Start a local blockchain with:
npm start