Skip to content

Token Wizard Local Dev Version

Victor Baranov edited this page Apr 16, 2018 · 5 revisions

For dev purposes you can build and run Token Wizard on your machine.

Prerequisites

Nodejs >= v.6.11.4

For Windows users:
npm install --global --production windows-build-tools
npm install --global node-gyp

restart CMD and run it As Administrator

Getting started

For Windows:

git clone https://github.com/poanetwork/token-wizard.git wiz
cd wiz
git submodule update --init --recursive --remote
npm install
cp .env.example .env
npm run start

Others (macOS, Linux):

git clone https://github.com/poanetwork/token-wizard.git wiz
cd wiz
git submodule update --init --recursive --remote
npm install
cp .env.example .env
npm start

Go to localhost:3000 and look around the app!

Using ganache

Since the Token Wizard expects a Registry contract to be already deployed, if you want to try the app with ganache you have to follow these steps:

  1. Start ganache in a terminal doing npm run ganache. This is important because this starts the client with some predefined parameters.
  2. In another terminal, do npm run deployRegistry. You should see a transaction in ganache's output.
  3. Finally, you can start the server with npm start
Clone this wiki locally