-
Notifications
You must be signed in to change notification settings - Fork 488
Install on Linux
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
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
npm -g install embark
See the Quick Guide
npm -g install ethereumjs-testrpc
- 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
npm i --save mocha