npm install
npm install truffle -g
npm install webpack webpack-cli -g
npm install ganache-cli -g
cd
to project folder
tar xvfz go-ipfs_v0.4.21_darwin-amd64.tar.gz
cd go-ipfs
./install.sh
ipfs init
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
npm run build
In terminal 1
ganache-cli -h 0.0.0.0 -p 7777 -d -l 200000000 -g
In terminal 2
Run ipfs daemon
ipfs daemon
In terminal 3
npm run server
Open page at http://localhost:3000/ and execute