University of Zurich
- Create a new issue (automatically adds the issue to the To Do column of Ticketing dApp project)
- Assign yourself an issue from the To Do column of the Ticketing dApp project and move it to the In Progress column
- Pull the latest changes from
origin/master
- Create a new local branch beginning with the issue number (e.g.,
4-feature
). - Commit to this branch mentioning the issue number in the commit message (e.g.
add functionality xyz (#4)
- Finish your implementation on the branch
- Pull and merge the latest changes from
origin/master
into your local branch - Verify that your changes still work as expected
- Merge your branch into
master
and push the changes - Close the issue and move it to the Done column of the Ticketing dApp project
- Git command line interface
- Node.js command line interface
- Metamask Extension for your browser communicating with the Ethereum blockchain
- Ganache to spin up a blockchain with funded test accounts and instant mining
git clone https://github.com/simibac/bc-ticketing
cd bc-ticketing/client/
npm install
sudo npm install -g truffle
- Start a local blockchain by opening the
Ganache
application. - Create a new workspace and add
bc-ticketing/truffle-config.js
to the project and safe the workspace. - Copy the mnemonic phrase (12 word seed phrase) in the
Ganache
application. - Open
Metamask
in your browser (Google Chrome recommended). - Click on
import using account seed phrase
and paste the mnemonic seed phrase. (No funds are shown because Metamask is not connected to the local network yet.) - Click on the network dropdown and select Custom RPC.
- Enter
Ganache
as the Network Name and the Ganache network configuration as the RPC URL which is by defaulthttp://127.0.0.1:7545
. - Click Save.
- You should now be logged in with an account(s) from the
Ganache
application with a balance of 100 ETH.
everytime to run the environment
- Pull the latest commits:
# Terminal Tab #1 cd /path/to/bc-ticketing git pull
- Start local blockchain with by opening the
Ganache
application. - Compile the
Smart Contracts
:# Terminal Tab #1 truffle compile
- Deploy the
Smart Contracts
on theGanache
network:# Terminal Tab #1 truffle migrate --reset
- Start the
Truffle
console:# Terminal Tab #1 truffle console
- Start the
Vue.js
client:# Terminal Tab #2 cd /path/to/bc-ticketing/client npm install npm run serve
localhost:8080
serves the application