Skip to content
Thndr edited this page May 24, 2017 · 16 revisions

Requirements

Requirements: geth (1.5.8 or higher), node (6.9.1 or higher is recommended) and npm Optional: testrpc (3.0 or higher) if using the simulator or the test functionality. Further: depending on the dapp stack you choose: IPFS

  • git, g++
sudo apt-get install git build-essential g++
  • NodeJS (npm optional)
sudo apt-get install nodejs npm

Recommended: Node v6.9.1+

If you wish you can use Node Version Manager instead of basic Apt-Get nodejs

1. Go-Ethereum

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

2. Embark

npm -g install embark

See the Quick Guide

3. EthereumJs-TestRPC

npm -g install ethereumjs-testrpc

EthereumJs-TestRPC github

4. IPFS

  • GO-IPFS

GO-IPFS

You will need to install GO and build IPFS locally to ensure it's using the latest features There is IPFS-Update that allows you to manage the version installed IPFS-Update

Once installed and setup you will need to make sure the headers are setup properly for your app

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://example.com\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\", \"POST\", \"GET\"]"

You would want to launch it with: ipfs daemon --enable-pubsub-experiment

  • JSIPFS - As a Node.js Daemon Uses port 5002 by default

While it's not 100% on parity with GO-IPFS, it seems to work and supports orbit.

npm i -g ipfs

To launch you would need to use jsipfs instead ipfs

5. Mocha

npm i --save mocha

Original Instructions

go-ethereum

Clone this wiki locally