This repo started as a truffle box: Drizzle Truffle Box: https://github.com/truffle-box/drizzle-box
You need to set uportNudgeClientID and uportNudgeSignerKey (checkout config/env.js)
- Make sure you have Truffle and Ganace CLI (I'm using the GUI)
npm install -g truffle npm install -g ganache-cli
I'm using the ganache-1.0.2 AppImage from http://truffleframework.com/ganache/
-
The Truffle box has already been unboxed, so all you need to do is
truffle compile truffle migrate
Note: for the GUI, use
truffle migrate --network ganache_gui
And if you want to add a network, like main or a test net, add it to truffle.js as a network. Refer to http://truffleframework.com/docs/advanced/configuration. I'm not sure what the difference is between truffle.js and truffle-config.js for this, but I added ganache_gui to both to be safe.
-
In your browser of choice (I'm using Firefox), open metamask and add an RPC network. Then add whichever accounts you'll need via the import account functionality.
-
Start the app with
npm run start
and make sure MetaMask is unlocked and on the correct network. If you get a loading screen, Metamask or your RPC node is probably the issue.
-
Tests are using Jest, and are done via
npm run test
-
To build for production
npm run build