A Gatsby starter with the Truffle Ethereum development framework in place.
-
Install truffle and an Ethereum client. For local development, try EthereumJS TestRPC.
$ npm install -g truffle // Version 3.0.5+ required. $ npm install -g ethereumjs-testrpc
-
Clone this repo and cd into directory.
$ git clone git@github.com:rongierlach/gatsby-truffle-starter.git $ cd gatsby-truffle-starter
-
Install dependencies with npm.
$ npm install
-
Use truffle to compile and migrate the contracts.
$ truffle compile $ truffle migrate
-
Start the dev environment.
$ npm run dev
-
Building for production.
$ npm run build