Setting up truffle dev environment

Nitin Gurbani
May 28, 2017 · 1 min read

Start geth with rinkeby chain

  1. Download Rinkeby json https://www.rinkeby.io/rinkeby.json
  2. Initialise datadir geth — datadir=$HOME/.rinkeby init rinkeby.json
  3. connect node to rinkeby network and start
geth --networkid=4 --datadir=$HOME/.rinkeby --cache=1024 --syncmode=full  --bootnodes=enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303

4. start ethereum wallet

/Applications/Ethereum\ Wallet.app/Contents//MacOS/Ethereum\ Wallet — rpc $HOME/.rinkeby/geth.ipc

5. Install truffle

npm install -g truffle

6. Initialize truffle

truffle init

after initialising truffle write you contract code and deploy using truffle commands

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store