webpack. This project is set up to start a local test network using Ganache and then deploy the colonyNetwork contracts to the local test network using Truffle. This project also uses TrufflePig to find and read the deployed contracts during local development.
This project includes example scripts also found in the colonyJS Local Setup documentation. In order to help you hit the ground running with your new project, this starter project includes all of the examples that can be called through interactions with a simple user interface.
- Yarn 1.12.3
- Node 10.12.0
You may find it helpful to use Node Version Manager (
nvm) to manage Node versions.
If you are using Linux, check out the Linux Setup page to ensure Yarn and Docker are set up accordingly.
Globally install the
yarn global add @colony/colony-starter
npx -p @colony/colony-starter colony-starter colony-starter-react
Open a new terminal window and start Ganache:
Open a new terminal window and deploy the colonyNetwork contracts:
Once the contracts have been deployed, start TrufflePig:
Open a new terminal window and run the seed network script:
Start Webpack Dev Server
Once the network has been seeded, start webpack-dev-server:
Open Your Browser
Open your browser and checkout the example react app::
Run Example Tests
Open a new terminal window and run the example tests: