Foodies Logo

An application that allows foodies to know where exactly their food came from.

Technical Requirements

Node.js v6+ LTS and npm

Truffle v3.2.1:

npm install -g truffle@3.2.1


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 '["*"]'


1. Clone repository and install necessary modules

git clone foodie
cd foodie
npm install

2. Initialize the blockchain with test accounts


3. Initialize IPFS

In a new terminal window:

ipfs daemon

4. Compile and deploy smart contracts onto the blockchain

In a new terminal window:

truffle migrate

5. Start the web app

truffle serve -p 8081

The app will be served at http://localhost:8081, but any web server will work.

6. Use the web app

7. Close the web app

  1. Close the application window
  2. ctrl-c in each of the 3 terminal windows

Built With

Share this project: