Running the example#
Before you can run this example, make sure you have:
access to one of the supported Chromium web browsers on your computer
yarn is a package manager
used in combination with
node.js. You can download node.js and
yarn on their official websites.
rustup installed to build the backend.
The front end needs the Concordium Wallet for Web for interaction. Install the extension for your browser as described here.
Clone this repository.
$git clone --recurse-submodules https://github.com/Concordium/concordium-dapp-examples.git
The minimal steps to run the example are as follows:
Navigate to the gallery example folder.
yarnin the gallery folder to install all dependencies.
yarn buildin the gallery folder to build the frontend.
yarn build-verifierin the gallery folder to build the backend.
yarn startto run the example.
$yarn start --statement "$(<verifier/config/statement.json)" --names "$(<verifier/config/names.json)"
The statement and names flags must be provided and they specify the values for these static variables. This runs them with the default values found in the gallery/verifier/config folder.
The gallery is then available on http://127.0.0.1:8100, however this can be changed by setting the port flag.