data-driven-choreographies / Car-Rental-Choreography-Visualization

Visualization Frontend for a Data Object Driven Implementation of a Car Rental Choreography

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockchain Choreography Frontend

Screencast

A screencast of the running project can be downloaded here.

Installation

Ganache

sudo npm install ganache-cli -g

Truffle

sudo npm install -g truffle

Build Project

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

Execution

Start a local blockchain with:

npm start

About

Visualization Frontend for a Data Object Driven Implementation of a Car Rental Choreography


Languages

Language:JavaScript 97.0%Language:HTML 2.0%Language:CSS 1.0%