Running the example#
Note
Before you can run this example, make sure you have:
Access to one of the supported Chromium web browsers on your computer.
Node.js is a JavaScript runtime environment and 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 frontend 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.
$cd ./gallery/
Run
yarn
in the gallery folder to install all dependencies.
$yarn
Run
yarn build
in the gallery folder to build the frontend.
$yarn build
Run
yarn build-verifier
in the gallery folder to build the backend.
$yarn build-verifier
Run
yarn start
to 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.