Skip to content

tokamak-network/zk-dex

Repository files navigation

ZK-DEX PoC

Directory

  • Front
  • Circuit
  • SmartContract

Documents

Requirement

  • docker
  • ganache-cli

Basic Usage

# 1. install node packages.
$ npm install

# 2. run ganache-cli in another terminal.
$ ganache-cli -e 10000

# 3. run zokrates docker container and initialize it.
$ npm run docker

# 3-1. (optional) if container is already running, restart it.
$ npm run docker:restart && npm run docker:init

# 4. run truffle commands (e.g., test).
$ npx truffle test ./test/ZkDex.test.js

Vue App Instalation (macOS)

# TODO: what need to do before run vue app
$ cd vapp && npm install && cd ..

Run Vue App

$ cd vapp

# run wallet server
$ node app.js

# run vapp server
$ cd vapp && npm run serve