University of Zurich
- Git command line interface
- Node.js command line interface
- Metamask Extension for your browser communicating with the Ethereum blockchain
git clone --recurse-submodules https://github.com/bc-ticketing/host-client.git
Before you run the application locally, you will need to create a .env
file in the root directory. For that, you can simply copy the file .env_sample
and fill the necessary information.
For the pinata keys, you need a pinata account and add the according keys to the environment variables as explained below. Pinata is used to pin the metadata of events, tickets and approvers to the IPFS network.
Further, you need to set the trust certificate api that you are going to use to verify that your trust verification is set correct. (For more information see the social-trust-certificates-api repository.)
The application needs a file named .env
in the root directory. The content of the file needs to be a set of key-value pairs in the format KEY=VALUE
. The following values need to be set:
VUE_APP_PINATA_API_KEY
& VUE_APP_PINATA_SECRET_API_KEY
VUE_APP_TRUST_CERTIFICATES_API
Public address of the deployed Identity contract
IDENTITY_ADDRESS
in the file /src/util/abi/Identity.js
Public address of the deployed Event Factory contract
EVENT_FACTORY_ADDRESS
in the file /src/util/abi/EventFactory.js
First, go to the root of the project and install the dependencies.
cd host-client
npm install
After setting the needed keys and contract addresses, you can start serving the application locally.
npm run serve