An application that allows foodies to know where exactly their food came from.
npm install -g truffle@3.2.1
IPFS:
Download the linked ^ package, open terminal, and do:
tar xvfz go-ipfs.tar.gz
mv go-ipfs/ipfs /usr/local/bin/ipfs
ipfs init
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST", "GET"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Headers '["Authorization"]'
ipfs config --json API.HTTPHeaders.Access-Control-Expose-Headers '["Location"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
git clone https://github.com/salmanzr/Foodie foodie
cd foodie
npm install
testrpc
In a new terminal window:
ipfs daemon
In a new terminal window:
truffle migrate
truffle serve -p 8081
The app will be served at http://localhost:8081, but any web server will work.
- Close the application window
ctrl-c
in each of the 3 terminal windows