-
Notifications
You must be signed in to change notification settings - Fork 495
Install on Linux
Thndr edited this page Jan 20, 2017
·
16 revisions
- git, g++
sudo apt-get install git build-essential g++
- NodeJS (node(4, 5, or 6), npm)
sudo apt-get install nodejs npm
Recommended: Node v5
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 install -g embark
See the Quick Guide
Recommended: @2.0.9
npm install -g [email protected]
- GO-IPFS
You will need to install GO and build IPFS locally to ensure it's using the latest features
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