A screencast of the running project can be downloaded here.
sudo npm install ganache-cli -gsudo npm install -g truffleInit truffle project in new folder (truffleproject/):
truffle initAdd 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 compileStart local blockchain in a new terminal:
ganache-cliAdapt 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 migrateCreate symlink for the smart contracts:
ln -s ./truffleproject/build/contracts ./Car-Rental-Choreography-Visualization/src/contractsStart a local blockchain with:
npm start